Add functions to support calculating day's change