Now I have good code I'm not too keen to post either.

I removed my () from the math's bit as they were unnecessary. Then the light bulb went on and I shaved another 3 chars.
_________________________
Every day is a school day