itsdrnoob / DataMonitor

Data usage monitoring app for android.
GNU General Public License v3.0
528 stars 49 forks source link

More intuitive Smart Data Allocation for custom plans #235

Open lfos opened 3 months ago

lfos commented 3 months ago

Checklist

Describe the Feature you'd like

Proposal:

For example, assume the custom plan starts on Jan 1 @ 10am and ends on Jan 3 @ 4pm:

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.

itsdrnoob commented 3 months ago

The initial concept behind Smart Data Allocation for a custom plan was to evenly distribute the data across each day, and rollover of any unused data to the following day.

doesn't take into account that the total duration of a custom plan might be a fraction.

Since the data is currently equally distributed among each day, even days with less than 24 hours are treated as full days.

That being said, distributing the plan based on the remaining hours is a viable solution and will definitely look closely into it. Thanks for the proposal.

lfos commented 3 months ago

@itsdrnoob - Thanks! Somewhat relatedly, the rollover computation seems to have a bug; since only tangential to this FR, I opened a separate issue #238.