> ## 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.

# Convert birth date to age

> Calculate age from a birth date in MM/YYYY format.

`GET /age/from-birthdate`

## OpenAPI

````yaml openapi.json get /age/from-birthdate
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:
  /age/from-birthdate:
    get:
      operationId: getAgeFromBirthdate
      summary: Convert birth date to age
      description: Calculate age from a birth date in MM/YYYY format.
      tags:
        - Age Groups
      parameters:
        - name: birthDate
          in: query
          required: true
          description: Birth date in MM/YYYY format
          schema:
            type: string
            pattern: ^\d{2}/\d{4}$
          example: 06/1990
      responses:
        "200":
          description: Age calculated
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AgeFromBirthdateResponse"
        "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
    AgeFromBirthdateResponse:
      type: object
      properties:
        birthDate:
          type: string
          description: Input birth date
        age:
          type: integer
          description: Calculated age
      required:
        - birthDate
        - age
````
