thekops

Calculation

Discussion created by thekops on Jun 20, 2017
Latest reply on Jun 20, 2017 by Johan Hedman

Hi guys, I am currently writing a program where it will calculate the amount of remaining leave. So this is a rough idea on how i wrote it.
1) the user will enter into a portal the total amount of leave they are taking.

2) assuming, one year there are 14days of leave.

3)one day, the user applied 2 days of leave

4) Remaining 12days of leaves

5)the next day, the user applied for another 4 days of leave

 

However, the field (outside the portal)  showing the remaining amount of leave shows 12 days remaining instead of 8days. Some advice will be appreciated.

Outcomes