04 Try it yourself Interactive
Give both solo times and the number of days before completion that A leaves. The console computes the fixed final stage, subtracts it, solves the joint stage and adds them back. It refuses combinations where B alone would already have finished the job inside those final days — which is a real impossibility, not a rounding problem.