RP63 WATERFALL TEST Project: Stash House: Dead Drop Budget: $100,000.00 | Recoupment target: $110,000.00 ------------------------------------------------------------ INITIAL STATE ✓ PASS: Initial phase is 1 ✓ PASS: Tommy remaining Phase 1: $2,000 ✓ PASS: Ethan remaining Phase 1: $2,000 ✓ PASS: Sydney remaining Phase 1: $1,000 (advance=$1,000) ✓ PASS: Pavel remaining Phase 1: $2,000 ✓ PASS: Josh remaining Phase 1: $0 (advance=$5,700 > target=$2,000) ------------------------------------------------------------ PHASE 1 — MONTH 1: Net available $3,000 ------------------------------------------------------------ Net available: $3,000.00 Don gross=$0.00 wire=$0.00 net=$0.00 Tommy gross=$2,000.00 wire=$0.00 net=$2,000.00 Ethan gross=$1,000.00 wire=$0.00 net=$1,000.00 Sydney gross=$0.00 wire=$0.00 net=$0.00 Pavel gross=$0.00 wire=$0.00 net=$0.00 Josh gross=$0.00 wire=$0.00 net=$0.00 ✓ PASS: Phase 1 Month 1: Don receives $0 ✓ PASS: Phase 1 Month 1: Tommy receives $2,000 (full target) ✓ PASS: Phase 1 Month 1: Ethan receives $1,000 (partial) ✓ PASS: Phase 1 Month 1: Sydney receives $0 (funds exhausted) ✓ PASS: Phase 1 Month 1: Pavel receives $0 ✓ PASS: Phase 1 Month 1: Josh receives $0 (advance deficit) ✓ PASS: Phase 1 Month 1: Phase is still 1 ------------------------------------------------------------ PHASE 1 — MONTH 2: Net available $5,000 (finishes Phase 1) ------------------------------------------------------------ Net available: $5,000.00 Don gross=$0.00 wire=$0.00 net=$0.00 Tommy gross=$0.00 wire=$0.00 net=$0.00 Ethan gross=$1,000.00 wire=$0.00 net=$1,000.00 Sydney gross=$1,000.00 wire=$0.00 net=$1,000.00 Pavel gross=$2,000.00 wire=$25.00 net=$1,975.00 Josh gross=$0.00 wire=$0.00 net=$0.00 ✓ PASS: Phase 1 Month 2: Don receives $0 ✓ PASS: Phase 1 Month 2: Ethan receives remaining $1,000 ✓ PASS: Phase 1 Month 2: Sydney receives $1,000 ✓ PASS: Phase 1 Month 2: Pavel receives $2,000 (full, minus wire fee from net) ✓ PASS: Phase 1 Month 2: Pavel wire fee = $25 deducted ✓ PASS: Phase 1 Month 2: Pavel net payable = $1,975 ✓ PASS: Phase 1 Month 2: Josh receives $0 ------------------------------------------------------------ PHASE 2 — MONTH 3: Net available $10,000 (investor recoupment begins) ------------------------------------------------------------ ✗ FAIL: After Phase 1 complete: phase is now 2 Net available: $10,000.00 Don gross=$0.00 net=$0.00 Tommy gross=$0.00 net=$0.00 Ethan gross=$0.00 net=$0.00 Sydney gross=$0.00 net=$0.00 Pavel gross=$25.00 net=$0.00 Josh gross=$0.00 net=$0.00 ✗ FAIL: Phase 2 Month 3: Phase is 2 ✗ FAIL: Phase 2 Month 3: Don receives 100% = $10,000 ✓ PASS: Phase 2 Month 3: Tommy receives $0 ✓ PASS: Phase 2 Month 3: Ethan receives $0 ✓ PASS: Phase 2 Month 3: Sydney receives $0 ✓ PASS: Phase 2 Month 3: Pavel receives $0 ✓ PASS: Phase 2 Month 3: Josh receives $0 ------------------------------------------------------------ PHASE 2 — MONTHS 4-13: Simulating Don recouping remaining $100,000 ------------------------------------------------------------ Don cumulative recouped: $100,000.00 Recoupment target: $110,000.00 ------------------------------------------------------------ PHASE 3 — MONTH 14: Net available $10,000 (normal waterfall) ------------------------------------------------------------ ✗ FAIL: After Phase 2 complete: phase is now 3 Net available: $10,000.00 Don gross=$0.00 deficit_red=$0.00 net=$0.00 Tommy gross=$0.00 deficit_red=$0.00 net=$0.00 Ethan gross=$0.00 deficit_red=$0.00 net=$0.00 Sydney gross=$0.00 deficit_red=$0.00 net=$0.00 Pavel gross=$25.00 deficit_red=$0.00 net=$0.00 Josh gross=$0.00 deficit_red=$0.00 net=$0.00 ✗ FAIL: Phase 3: Phase is 3 ✗ FAIL: Phase 3: Don receives 50% = $5,000 ✗ FAIL: Phase 3: Tommy receives 15% = $1,500 ✗ FAIL: Phase 3: Ethan receives 15% = $1,500 ✗ FAIL: Phase 3: Sydney receives 10% = $1,000 ✗ FAIL: Phase 3: Pavel receives 5% = $500 (gross) ✓ PASS: Phase 3: Pavel wire fee $25 deducted ✗ FAIL: Phase 3: Pavel net = $475 ✗ FAIL: Phase 3: Josh gross = $500 (applies to deficit) ✗ FAIL: Phase 3: Josh deficit reduction = $500 ✓ PASS: Phase 3: Josh cash net = $0 (deficit not yet cleared) ✗ FAIL: Phase 3: Total gross allocations = net available $10,000 ------------------------------------------------------------ ZERO NET AVAILABLE TEST ------------------------------------------------------------ ✓ PASS: Zero net: no payouts generated ✗ FAIL: Zero net: phase still calculated ------------------------------------------------------------ RESULTS ------------------------------------------------------------ Passed: 28 Failed: 15 WARNING: 15 test(s) failed. Review WaterfallCalculator.php.