Hi there,
I can re-work this code for you in PHP quite easily. The calculation part is a fairly trivial process of language translation and shouldn't take more than 15 minutes. Then it's just a matter of allowing the user to input their data. Web forms with javascript should be more than up to the task.
I look forward to hearing from you soon.
Regards,
Chris