Currently, Billables Buddy shows the statistics for total hours, billable hours, and non-billable hours. However, users who don't track non-billable hours might not find showing non-billable hours useful since they would always be behind on non-billable expectations. To solve this, we should allow users to flag to toggle off showing non-billable hours when they build the app.
Currently, there's an issue where users who have assignments that span multiple weeks (instead of having an assignment that lasts a single week) are being assigned fourteen days in a weekly schedule. In this card, we'll fix this issue by detecting when an assignment is more than a single week, and averaging out the allocation based on the number of days the assignment lasts and the number of days a user is assigned to work.
For assignments that span multiple weeks, the daily allocation is the same throughout the assignment - meaning we can safely average out the allocation.
For users who are looking to get statistics on their tracked hours today, we should add a section that has details for today, including actual and expected hours for billables and non-billables today.
Outstanding Questions
Is it more intuitive to see actual and expected hours for both billables and non-billables in a "today" section, or is it more intuitive to include "actual today" and "expected today" statistics in the billables and non-billables section.
Technical Details
Although we keep a detailed schedule of actual hours in the fc.Schedule struct, we don't expose that data to main.