Optional workbooksOptional workbooks · 12 min

Migration deadline and budget

Link a migration schedule to the cost of running old and new systems together.

Migration couples schedule and money. Two preparation tasks run concurrently, then validation starts after both finish: duration is max(A,B)+validation. A common complexity factor can slow both tasks together. A separate idea, parallel or dual running, means operating the old and replacement services at the same time until migration completes.

This workbook charges an invented £1,800 for each day of dual running, plus a fixed transition cost. Three policies share task worlds: standard, extra staff and a smaller first release. Their supplied speed multiplier changes preparation, not validation. At 20 days the standard policy costs £15,000+20×£1,800=£51,000. These effects and prices are teaching assumptions.

Test deadline and budget jointly within each world. Their separate success fractions cannot generally be multiplied, because a longer migration costs more. A cutover switches users to the replacement; rollback returns them to the old service if that switch fails. Those events are possible extensions, not simulated here. Keep the small schedule and cost boundary inspectable before adding them.

In the illustration, T is completion time, C is cost, d is the deadline and b is the budget; ∧\land means both conditions hold and the indicator is 1 only for joint success.

Schedule and cost share the same world
  1. Sample a migration path
    TiT_i
  2. Account for overlap
    Ci=migration+dual-running cost\begin{gathered}C_i=\text{migration}\\+\text{dual-running cost}\end{gathered}
  3. Evaluate joint success
    1Ti≤d  ∧  Ci≤b\mathbf1_{T_i\le d\;\land\;C_i\le b}
Reference illustration. The workbook keeps each world’s completion and cost together. Multiplying marginal success probabilities would erase their dependence; delays affect dual-running costs.

If longer duration directly increases cost, can deadline and budget success be multiplied as independent events?

Write a prediction (optional)

Seeded teaching simulation

Select Run Python below with the code unchanged.

Tools
About Python ↗

The code is editable. Press Ctrl+Enter or ⌘+Enter to run Python from the editor.

Published example output

This result comes from the original Python. Your runs appear above. Build environment ↗

Standard P(deadline): 0.768 P(budget): 0.938 P(both): 0.768 Duration P90 (days): 28.77
Extra staff P(deadline): 0.912 P(budget): 0.812 P(both): 0.812 Duration P90 (days): 24.58
Smaller first release P(deadline): 0.957 P(budget): 0.957 P(both): 0.957 Duration P90 (days): 22.47

Read the first result

The joint success indicator keeps each world’s duration and cost together. Multiplying marginal success rates would erase their connection.

Try an edit

Add cutover_failed = rng.random(worlds) < 0.10 just above the for label, factor, fixed loop. Inside that loop, append + 20000*cutover_failed to cost = fixed+1800*days. Select Run Python again. Compare P(deadline), P(budget), P(both) and Duration P90 (days). The same worlds face the invented 10% failure chance for every option. The added cost does not extend the schedule.

Back to the Python editor

Scope. Task duration and policy effects are invented. The schedule has no resource contention, calendar constraints, retries or scope-quality model.

Try a fresh case

Two preparation tasks run simultaneously before validation. What is the basic finish-time rule?

Choose an answer
Need a hint?
Hint 1

Draw the two parallel branches joining before validation.

Hint 2

The join occurs when both branches have finished.

Your notes