After Step 3 — Explode into installment rows: For order_id = 1 we get 3 rows with installment_num 1, 2, 3. After Step 4 — Assign amounts with penny distribution: For order_id = 1: remainder_cents = 1, ...