changed formula for EDD