(integrate (f(x) = (h-3) * (q)^x +3); from 0 to z-y) + (k * ((h-3) * (q)^k +3)); h = 7; y = 22; k = 28; z=52; q = (2/7)^(1/52-y)