code works - pro

If else statement and final calculation all work.