Resets the daily and/or weekly and/or monthly sums if necessary. It is conceived necessary to reset the sums if the specified timestamp is a day older as the last update and a month older as the last update, respectively. If resetting the monthly sums, the daily sums are reset, too.