in reply to computation difficulty

Smells like homework. It is not very clear what the actual problem is - or maybe I am just being dense this morning.