Math in arduino

thank you guys im actually done. it was a no brainer. I was doing it just after I asked the question. Thanks for the permission though