> ## Documentation index
> Fetch the complete documentation index at: https://docs.simplycpf.com/llms.txt
> Ask it with GET https://docs.simplycpf.com/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.

# Generate CPF projection

> Generate multi-year CPF contribution projection with cumulative totals.

`POST /projection`

## OpenAPI

````yaml openapi.json post /projection
openapi: 3.1.0
info:
  title: SimplyCPF API
  version: 1.0.0
  description: "Public SimplyCPF calculation and reference API. No authentication
    required. Amounts are in SGD. Rate limit: 10 requests per 10 seconds per
    client IP. Results are estimates, not financial advice."
  contact:
    name: SimplyCPF
    url: https://simplycpf.com
servers:
  - url: https://simplycpf.com/api/cpf
    description: Production
  - url: http://localhost:3000/api/cpf
    description: Local development
security: []
tags:
  - name: Calculation
    description: Calculate CPF contributions and projections
  - name: Age Groups
    description: Age group information and lookups
  - name: Income Ceiling
    description: CPF income ceiling data
  - name: Interest Rates
    description: CPF interest rates and SGS yields
  - name: Investment
    description: Investment comparison tools
paths:
  /projection:
    post:
      operationId: calculateProjection
      summary: Generate CPF projection
      description: Project yearly balances, contributions, interest, retirement
        milestones and simplified CPF LIFE estimates. Supports both legacy
        income/age/years and full monthlyIncome/startAge inputs.
      tags:
        - Calculation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ProjectionRequest"
            example:
              income: 5000
              age: 30
              years: 5
      responses:
        "200":
          description: Successful projection
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProjectionResponse"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          $ref: "#/components/responses/RateLimited"
components:
  responses:
    RateLimited:
      description: Rate limit exceeded. Production CPF API endpoints allow 10 requests
        per 10 seconds per client IP.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: Rate limit exceeded
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
    ContributionResult:
      type: object
      properties:
        totalContribution:
          type: number
          description: Total CPF contribution (employee + employer)
        employer:
          type: number
          description: Employer's CPF contribution
        employee:
          type: number
          description: Employee's CPF contribution
      required:
        - totalContribution
        - employer
        - employee
    ProjectionRequest:
      anyOf:
        - $ref: "#/components/schemas/LegacyProjectionRequest"
        - $ref: "#/components/schemas/FullProjectionRequest"
    YearlyProjection:
      type: object
      properties:
        year:
          type: integer
          description: Calendar year
        age:
          type: integer
          description: Age during this year
        ageGroup:
          type: string
          description: Age group description
        contribution:
          $ref: "#/components/schemas/ContributionResult"
        cumulative:
          $ref: "#/components/schemas/ContributionResult"
      required:
        - year
        - age
        - ageGroup
        - contribution
        - cumulative
    ProjectionResponse:
      type: object
      properties:
        input:
          $ref: "#/components/schemas/ProjectionRequest"
        projections:
          type: array
          items:
            $ref: "#/components/schemas/YearlyProjection"
        projectionInput:
          type: object
          properties:
            monthlyIncome:
              type: number
              minimum: 0
            birthDate:
              type: string
              pattern: ^\d{2}/\d{4}$
              description: Birth date in MM/YYYY format. Used when startAge is omitted.
              example: 01/1995
            startAge:
              type: number
              minimum: 0
            endAge:
              type: number
              exclusiveMinimum: 0
            housingWithdrawal:
              type: number
              minimum: 0
              description: Monthly OA housing withdrawal in SGD.
            citizenship:
              type: string
              enum:
                - citizen
                - spr-year1
                - spr-year2
                - spr-year3-plus
              default: citizen
            voluntaryTopUp:
              type: object
              properties:
                amount:
                  type: number
                  minimum: 0
                account:
                  type: string
                  enum:
                    - SA
                    - MA
                    - RA
                frequency:
                  type: string
                  enum:
                    - monthly
                    - yearly
              required:
                - amount
                - account
                - frequency
            oaToSaTransfer:
              type: object
              properties:
                amount:
                  type: number
                  minimum: 0
                timing:
                  type: string
                  enum:
                    - now
                    - yearly
              required:
                - amount
                - timing
          required:
            - monthlyIncome
            - birthDate
            - citizenship
        yearlyBalances:
          type: array
          items:
            $ref: "#/components/schemas/YearlyBalance"
        milestones:
          type: object
          properties:
            age55:
              $ref: "#/components/schemas/AccountBalances"
            age65:
              $ref: "#/components/schemas/AccountBalances"
            age70:
              $ref: "#/components/schemas/AccountBalances"
          required:
            - age55
            - age65
        cpfLifeEstimate:
          type: object
          properties:
            standardMonthly:
              type: number
            escalatingStartMonthly:
              type: number
            basicMonthly:
              type: number
            deferredTo70Monthly:
              type: number
          required:
            - standardMonthly
            - escalatingStartMonthly
            - basicMonthly
            - deferredTo70Monthly
        totalContributed:
          type: number
        totalInterestEarned:
          type: number
      required:
        - input
        - projections
        - projectionInput
        - yearlyBalances
        - milestones
        - cpfLifeEstimate
        - totalContributed
        - totalInterestEarned
    LegacyProjectionRequest:
      type: object
      properties:
        income:
          type: number
          minimum: 0
          description: Monthly income (non-negative)
        age:
          type: number
          minimum: 0
          description: Starting age
        years:
          type: number
          minimum: 1
          maximum: 50
          description: Number of years to project (1-50)
      required:
        - income
        - age
        - years
    FullProjectionRequest:
      type: object
      properties:
        monthlyIncome:
          type: number
          minimum: 0
        birthDate:
          type: string
          pattern: ^\d{2}/\d{4}$
          description: Birth date in MM/YYYY format. Used when startAge is omitted.
          example: 01/1995
        startAge:
          type: number
          minimum: 0
        endAge:
          type: number
          exclusiveMinimum: 0
        housingWithdrawal:
          type: number
          minimum: 0
          description: Monthly OA housing withdrawal in SGD.
        citizenship:
          type: string
          enum:
            - citizen
            - spr-year1
            - spr-year2
            - spr-year3-plus
          default: citizen
        voluntaryTopUp:
          type: object
          properties:
            amount:
              type: number
              minimum: 0
            account:
              type: string
              enum:
                - SA
                - MA
                - RA
            frequency:
              type: string
              enum:
                - monthly
                - yearly
          required:
            - amount
            - account
            - frequency
        oaToSaTransfer:
          type: object
          properties:
            amount:
              type: number
              minimum: 0
            timing:
              type: string
              enum:
                - now
                - yearly
          required:
            - amount
            - timing
      required:
        - monthlyIncome
      anyOf:
        - required:
            - startAge
        - required:
            - birthDate
      description: Provide startAge or birthDate. endAge must be at least startAge,
        and the inclusive projection horizon cannot exceed 50 years.
    AccountBalances:
      type: object
      properties:
        oa:
          type: number
        sa:
          type: number
        ma:
          type: number
        ra:
          type: number
      required:
        - oa
        - sa
        - ma
        - ra
    YearlyBalance:
      type: object
      properties:
        year:
          type: number
        age:
          type: number
        ageGroup:
          type: string
        balances:
          $ref: "#/components/schemas/AccountBalances"
        contributions:
          type: object
          properties:
            employee:
              type: number
            employer:
              type: number
            total:
              type: number
          required:
            - employee
            - employer
            - total
        distribution:
          $ref: "#/components/schemas/AccountBalances"
        interestEarned:
          type: object
          properties:
            oa:
              type: number
            sa:
              type: number
            ma:
              type: number
            ra:
              type: number
            extraInterest:
              type: number
          required:
            - oa
            - sa
            - ma
            - ra
            - extraInterest
        housingWithdrawal:
          type: number
        voluntaryTopUp:
          type: number
      required:
        - year
        - age
        - ageGroup
        - balances
        - contributions
        - distribution
        - interestEarned
````
