Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I did something like this a long time ago where I ran out of time to make a program that actually does the calculation, so I just programmed a results screen displaying the final answer.
 
  • Like
Reactions: Antonis_Sp
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.