Skip to content

Generated file. Source: docs/ROS_interest_flow_diagram.md Edit the source document and run npm run docs:sync to refresh this published copy.

ROS Interest Flow Diagrams

This file contains visual diagrams explaining the ROS (6-year annual accumulation with inflation indexing) bond strategy algorithm.

Architecture Overview

flowchart LR
    A[calculateRosBondResult] --> B[createRosAnnualAccumulationStrategy]
    B --> C[simulateAnnualAccumulationBond]
    C --> D[Yearly snapshots]
    C --> E[Purchase events]
    C --> F[Redemption events]
    C --> G[Yearly results]

Mid-Term Accumulation Flow

ROS uses 6-year cycles with inflation-indexed rates after the first year.

flowchart TD
    A[Start year] --> B[Apply yearly capitalization to active bonds]
    B --> C{Year is multiple of 6?}
    C -- Yes --> D[Redeem matured 6-year batch]
    C -- No --> E[Continue accumulation]
    D --> F[Tax redemption profit]
    F --> G[Add net proceeds to cash]
    G --> H{Reinvest cash >= 100?}
    H -- Yes --> I[Buy new ROS batch]
    H -- No --> J[Add to cash account]
    I --> K[Store purchase event]
    J --> K
    K --> L{final year?}
    L -- Yes --> M[Early redeem remaining bonds]
    L -- No --> N[Build year snapshot]
    M --> N

Rate Structure Timeline

xychart-beta
    title "ROS 6-Year Rate Structure"
    x-axis ["Year 1", "Year 2", "Year 3", "Year 4", "Year 5", "Year 6"]
    y-axis "Annual Rate (%)" 4 --> 9
    line [5.00, "inf+2.0", "inf+2.0", "inf+2.0", "inf+2.0", "inf+2.0"]

References