Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WeekdayAverages are slightly skewed by extending the time period before calculating the daily average #102

Open
maiers opened this issue Nov 30, 2022 · 1 comment

Comments

@maiers
Copy link

maiers commented Nov 30, 2022

Actual: It seems that WeekdayAverages a slightly off when viewed for a time period not aligned with the start/end of a week. Thus artificially decreasing the daily average for those days for which no data is available.

Expected: WeekdayAverages only normalizes daily hours worked by the number of instances of the given weekday within the actual time period monitored.

@maiers
Copy link
Author

maiers commented Nov 30, 2022

Example: if we generate a report from Monday past week until today (which is a Wednesday). We would expect that the daily average for Thursday is the actual number of hours worked last week on Thursday (divide by 1). But because the total is divided by the number of full weeks in the data set, we divide by 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant