The formulas are just like those you use in MS Excel. They also follow the basic principle for mathematics which is Please Excuse My Dear Aunt Sally or Everything in parenthesis first, then exponents next, then multiplication, then division, then addition, then subtraction.
What that means is if I have the formula:
(2+4)*6 = 36
You add the 2 and the 4 first because they are in parenthesis, then you multiply that total by 6
If you had:
2+4*6= 26
You would multiply the 4 by the 6 giving you 24 and then add 2 to that giving you a total of 26
It is all in the order that you calculate.
Good luck.