Budget mint cash need: ceil((budget + 1) * (1 / p - 1)) + 1. The budget + 1 covers premiums rounding down, which lets a fill buy up to 1 / p raw units more than budget / p.
ceil((budget + 1) * (1 / p - 1)) + 1
budget + 1
1 / p
budget / p
Budget mint cash need:
ceil((budget + 1) * (1 / p - 1)) + 1. Thebudget + 1covers premiums rounding down, which lets a fill buy up to1 / praw units more thanbudget / p.