simplified date computation