Fix days' counter