Open
Description
Checklist
- I made sure that there are no similar feature requests - open or closed.
- I have taken the time to fill in all the required details in an appropriate descriptive way. I understand that the feature request will be dismissed otherwise.
- This issue contains only one feature request.
Describe the Feature you'd like
Proposal:
- For custom plans, correctly compute total plan duration, taking into account that (i) first and last day might be partial days and (ii) the total number of days is not necessarily an integer.
- Take partial days into account when computing daily quota; i.e., allocate quota for actual days (starting/ending at midnight) but have prorated quota for first/last day of the plan.
For example, assume the custom plan starts on Jan 1 @ 10am and ends on Jan 3 @ 4pm:
- The total duration of the plan is
(14+24+16) / 24 = 2.25
days. - Assume the plan has 100MB, then on Jan 1, the daily quota should be
100MB * 14 / (14+24+16) ≈ 26MB
. - Assume the plan still has 100MB left on Jan 2, the daily quota should be
100MB * 24 / (24+16) = 60MB
; regardless of the time of day. - Assume the plan still has 100MB left on Jan 3, the daily quota should be 100MB.
Why do you want this feature?
If my understanding/observation is correct, the Smart Data Allocation currently computes remaining days based on the time delta to the end date/time (thereby making the exact meaning of "daily quota" slightly counterintuitive) and doesn't take into account that the total duration of a custom plan might be a fraction.
Additional context
Strictly speaking not a feature request -- but I felt this bug type was a slightly better fit than a bug report.