ar days formula