---
title: "Multi-mode financial calculations"
method: POST
path: "/finance-calc.php"
tags: ["data"]
---

# Multi-mode financial calculations

`POST /finance-calc.php`

## Request

- Base URL: `https://mate.tools/api/v1`
- URL: `https://mate.tools/api/v1/finance-calc.php`
- Auth: none declared

One endpoint, many modes. `mode` selects the calculation: `loan`, `compound_interest`, `simple_interest`, `discount`, `tip`, `sales_tax`, `roi`, `percentage`, `markup`. Each mode has its own required fields - see the description in source for the full schema.

## Request body

- object
  - `mode` 'loan' | 'compound_interest' | 'simple_interest' | 'discount' | 'tip' | 'sales_tax' | 'roi' | 'percentage' | 'markup', required

## Response `200`

Success

## Other responses

- `400`: Malformed request
- `429`: Rate limit exceeded (60/min, 600/hour per IP). Includes Retry-After header.

---

[API](https://skmtc.dev/mate/apis/mate-tools-api.md) · [All operations](https://skmtc.dev/mate/apis/mate-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mate/apis/mate-tools-api/revisions/874670b78962?raw)
