This content has been marked as final. Show 2 replies
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.