fixed quartile date calculation