• Mahmoud Aglan's avatar
    fix(installments): correct interest formula to flat simple interest prorated by duration · 8b7ccbd6
    Mahmoud Aglan authored
    All calculation sites now use: interest = remaining × (rate/100) × (months/12)
    instead of diminishing-balance amortization.
    
    Changes across all 6 sites:
    - InstallmentCalculator: flat interest, equal monthly instalments
    - PricingEngine: same formula
    - RetroactiveMembershipService: same formula
    - retroactive-wizard JS: updated preview + shows المبلغ المتبقي in summary
    - Members/show.php: preview panel now includes months factor (was missing)
    - Installments/create.php: added live المبلغ المتبقي preview panel
    Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
    8b7ccbd6