How We Calculate
Every RefillDay result can be checked by hand. This page lists the formulas, rounding rules and assumptions the calculators use, so you can see exactly where a number came from.
Days supply
Days Supply = Quantity ÷ Amount Used per Day, rounded down
We round down because a partial day doesn't cover all of that day's doses. Whatever is left after the last full day is shown as "left over." This matches how US pharmacies record days supply for tablets and capsules.
Dates
- The fill or start date is day 1 of the supply.
- Supply end date = fill date + days supply − 1: the last day covered.
- Estimated refill date = fill date + days supply: the first day without medication, which pharmacies often treat as the due date.
- Planning date = estimated refill date − your reminder buffer.
Dates are calculated as whole calendar days, never as clock times, so time zones and daylight-saving changes can't shift a date. Month lengths and leap years come from the calendar itself: February has 29 days in 2028 but 28 in 2027 and 2100. "Today" is your device's local date.
Missed doses, extra doses and pill counts
- Missed doses are added back to the quantity (the pills are still in the bottle). Extra doses are subtracted. Both are counted in pills.
- A pill count replaces the estimate entirely. We assume you counted before taking that day's doses, and the run-out date is the count date plus the whole days the count covers.
- When a saved medication has a count from an earlier day, we subtract your daily amount for each day since, so the list stays current.
Status labels
| Label | When it appears |
|---|---|
| Not started | The fill date is in the future |
| On track | 7 or more days left and before your planning date |
| Refill planning time | On or after your planning date, with 7 or more days left |
| Less than 7 days remaining | 1 to 6 days left |
| Supply ended | No days left by the numbers entered |
Each label has its own wording and icon, so the meaning never depends on color alone.
Other calculators
- Changing doses: we count day by day from the start date, subtracting that weekday's dose until there isn't enough for the next one. Tapers add each step's daily amount × days.
- Quantity needed: we count whole doses in the period (once weekly for 30 days is 5 doses) and round up to whole tablets.
- Tablets by strength: dose ÷ strength. We flag results that aren't whole tablets, or halves for tablets, because those doses can't be made accurately.
- Liquids: usable volume = bottle × (1 − loss allowance). Days supply = usable volume ÷ mL per day, rounded down. 1 tsp = 5 mL, 1 tbsp = 15 mL.
- Refill too soon: day = days supply × threshold, rounded up; date = fill date + that day. The thresholds are examples for comparison, not any plan's actual rule.
- Refills remaining: covered days = (refills + 1) × days supply. If you enter the date written, refills dated after the expiration (written date + validity in months) are excluded.
- Prior authorization timeline: decision deadline = time the plan received the request + the federal maximum for your coverage, request type and urgency (hours are counted as elapsed time; days as calendar days). Sources: 42 CFR 423 subpart M (Medicare Part D), Social Security Act §1927(d)(5) and 42 CFR 438 (Medicaid), 29 CFR 2560.503-1 (employer plans), 45 CFR 147.136 and 156.122 (Marketplace plans). We show the federal maximum; states and plans can be faster.
- Copay savings: days in the period = months × 365 ÷ 12; fills needed = days ÷ days per fill, rounded up; cost = fills × cost per fill; cost per day = cost per fill ÷ days per fill.
- Dosage (mg/kg): kg = lb × 0.45359237; per-dose rate: mg per dose = kg × mg/kg; per-day rate: mg per day = kg × mg/kg, divided by doses per day. Any maximum you enter replaces a higher result. mL = mg ÷ (mg ÷ mL of the liquid strength), rounded to 0.1 mL with the exact value shown.
- Insulin, eye drops and inhalers: each pen, vial, bottle or inhaler lasts the shorter of (its contents ÷ daily use) and its discard-after-opening period. Insulin daily use = units per day + priming units × injections per day. Eye drops: total drops = mL × drops per mL (15, 16 or 20); daily use = drops per dose × eyes × doses per day. Inhalers: usable puffs = puffs − priming puffs. Days supply = containers × days per container, rounded down.
- Medication schedule: "every N hours" adds N hours to the first dose time until 24 hours are filled. "N times a day" spaces doses evenly from wake-up time to bedtime, rounded to 5 minutes.
- Half-life: amount left = dose × 0.5(time ÷ half-life), assuming one dose and first-order elimination. About 97% is cleared after 5 half-lives; steady state takes about 4 to 5 half-lives of regular dosing.
- Creams and ointments: grams per application = fingertip units × 0.5 g (adult values from Long & Finlay, 1991), or the grams you enter. Days supply = total grams ÷ (grams per application × applications per day), rounded down.
- IV drip rate: mL/hr = volume ÷ hours; gtt/min = mL/hr × drop factor ÷ 60, rounded to whole drops. Dose orders are converted to the bag's unit per hour (× 60 for per-minute orders, × weight in kg for per-kg orders, 1 mg = 1,000 mcg) and divided by the concentration (amount in bag ÷ bag volume). Time remaining = volume left ÷ mL/hr.
- Controlled-substance refill limits: Schedule II prescriptions have no refills (21 CFR 1306.12). Schedule III and IV refills end 6 calendar months after the date written, with at most 5 (21 CFR 1306.22). A refill is counted as fitting if its earliest date at the chosen threshold falls on or before that date.
- Multi-dose vial discard date: date opened + in-use days (28 by default, following USP <797> as summarized by CDC), or the labeled expiration date if that comes first.
- Earliest refill (homepage): fill date + the labeled days supply × 80%, rounded up, with 75% and 90% shown for comparison. It uses the days supply as dispensed, because insurance plans do not see missed doses or pill counts.
- mg to mL: mL = mg ÷ (mg ÷ mL of the strength); mg = mL × (mg ÷ mL). mg to mL results are rounded to 0.1 mL with the exact value shown. 1 tsp = 5 mL.
What we don't calculate
- Doses. RefillDay never suggests how much medication to take. The mg/kg calculator only does the arithmetic for a dose rate your prescriber or the product label gave you, and it contains no drug information.
- Insurance approval. We can't see your plan's rules or claims history.
- Patches, injectables other than insulin, and other products whose use can't be counted in whole units or grams.
Spotted something that looks wrong? Recheck your entries first; most surprises come from a fill date or a per-day amount. Your pharmacist can always confirm the days supply on record.