Shared Bill by Occupancy Days Calculator

Compare two agreements for splitting a shared bill when participants arrive and leave at different times. Daily split divides each day’s portion among the people present at their entered weights. Weighted days allocates the entire bill by each participant’s active days times their weight. The calendar shows when overlap and vacancy make the two amounts diverge. Use the exact CSV to record participant shares and rounding.

Shared costs

Compare two ways to split a shared bill

Use one line per participant. Enter name | included arrival (YYYY-MM-DD) | excluded departure (YYYY-MM-DD) | whole weight.

Daily split allocates $30.00 to unoccupied days.

Bill period
4 days
Actual calendar days
Days without participants
1
In the entered bill period
Weighted-days unassigned
$0.00
Across the entire bill

Compare participant shares

Each bar uses the full bill as its scale. Amounts include final cent allocation.

  • Alex

    2 days · weight 1

    Daily split $40.00
    Weighted days $40.00
  • Blair

    2 days · weight 2

    Daily split $50.00
    Weighted days $80.00
  • Unassigned

    1 day · no occupancy

    Daily split $30.00
    Weighted days $0.00

Review occupancy periods and rounding

Show the occupancy calendar

Each row starts on its first included date. The last date shown is outside that row.

  1. 2028-02-27 to 2028-02-28

    1 day · Alex

    Total active weight 1

  2. 2028-02-28 to 2028-02-29

    1 day · Alex, Blair

    Total active weight 3

  3. 2028-02-29 to 2028-03-01

    1 day · Blair

    Total active weight 2

  4. 2028-03-01 to 2028-03-02

    1 day · Unoccupied

    Total active weight 0

Both methods allocate $120.00 including any Unassigned share. Remaining cents go to the largest fractional remainders, then to earlier entries when tied.

How to use this calculator

  1. Enter the full USD amount and the bill’s included start and excluded end dates.
  2. Add a row for each participant using their name, included arrival date, excluded departure date and agreed whole weight. Enter 1 for an equal weight.
  3. Compare the two sets of participant shares. Expand the calendar to see who was present at each set of dates and which days were unoccupied.
  4. Download the CSV to keep the exact fractional-cent quotas and final dollar amounts.

The Formula

The mathematical logic powering this calculation is:

Count actual calendar days in [included start, excluded end). Clip each participant’s dates to the bill period. Let C be the bill in cents, D the period days, dᵢ the participant’s active days, and wᵢ their positive whole weight.
Daily split: each occupied day assigns C/D cents among active participants in proportion to their weights. Each empty day adds C/D to Unassigned. Add daily quotas before rounding. Weighted days: each participant’s quota is C × dᵢ × wᵢ / sum(dⱼ × wⱼ). If nobody is active during the bill period, both methods place C in Unassigned.
For each method, floor the exact quotas to whole cents, then award the remaining cents in order of largest fractional remainder. Equal remainders follow participant entry order, with Unassigned last. Both methods reconcile to C. The planner supports one fixed USD bill, one interval per participant, and weights from 1 to 1,000. It treats every period day as an equal portion of the bill.

Worked Example

If you input:

  • Bill: $120 for four days, February 27 to March 2, excluding March 2
  • Alex: February 27 to February 29, excluding February 29, weight 1
  • Blair: February 28 to March 1, excluding March 1, weight 2

Result:

Daily split assigns $40 to Alex, $50 to Blair and $30 to Unassigned. Weighted days assigns $40 to Alex and $80 to Blair.

Frequently Asked Questions

What happens if departure and arrival are on the same day?

The departure date is excluded and the arrival date is included. On that date, the new participant is active and the departing participant is inactive.

How does this handle vacant days?

Daily split holds their portion in Unassigned. Weighted days spreads the whole bill across the entered weighted stays when at least one participant is active.

Why can the two methods give different shares?

Daily split gives each calendar day the same bill portion and allocates that portion locally. Weighted days gives each weighted participant-day the same share of the whole bill, so heavily occupied days contribute more to that allocation.

Can I use decimal weights?

Use equivalent whole weights. For example, 1.5:1 can be entered as 3:2. Each weight may be from 1 to 1,000.

How do you handle a remaining cent?

The largest fractional remainder gets the first remaining cent. A tie goes to the earlier entry. This keeps the total exact after rounding.

Similar Calculators