now computes length of day