updated calculate.php

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