updated calculate.php

added code to re-zero the deltas and today/yesterday credits each time
we go to a new folder.
Revert "updated calculate.php"

This reverts commit a48d150cb4584e9e6259e57084a101a2536d0487.