I worked out the formula, and was about to post it when I thought "Oh FFS I've just spent my time thinking about this and all because
miloat didn't bother to pay attention in class!" So, I didn't bother either...
On a more serious note - I don't think it really helps to just hand someone the answer to a problem. My sister phoned me up one evening because she couldn't work out how to do her daughter's homework for her. I told her that I
could do it, but I wasn't going to. If my niece wanted to discuss the problem, I'd gladly help her understand how to go about solving it.