tip = bill x (tip% / 100)tax = bill x (tax% / 100) (optional)grand = bill + tax + tipgrand ÷ peoplegrand in cents.floor(totalCents ÷ people), remainder = totalCents - base x people.remainder people pay base+1 cents; others pay base cents.Choose which optional categories you allow. Necessary cookies are always on. Privacy Policy.