Question 44745
I didn't check your arithmetic but 
the logic looks right.

Cheers,
Stan H.