initial day calculations, not sure if they're correct