Back

#calculator

12 APIs with this tag

Dollar-Cost Averaging API

Live dollar-cost-averaging analytics that investors run to see how periodic buying plays out — computed on demand from the price series you pass in, no key, nothing cached. Get the outcome of investing a fixed amount each period (total invested, units accumulated, average cost, current value, profit and ROI) with a lump-sum comparison; the per-period breakdown; and a ranking of dollar-cost averaging against lump-sum, best-case and worst-case timing. Works for any market — stocks, crypto, ETFs or forex. A dollar-cost-averaging engine, distinct from compound-interest and return-analysis tools: it turns a price path and a contribution into the cost basis and outcome of buying over time.

api.oanor.com/dca-api

Forex Calculator API

Live foreign-exchange trading calculators computed from live ECB reference rates. The pip-value endpoint returns what one pip of a currency pair is worth, in the trader's account currency, for a given lot size. The position-size endpoint returns how many lots to trade to risk a fixed percentage of the account on a given stop-loss. The profit-loss endpoint returns the P&L of a trade from its entry, exit and direction. The margin endpoint returns the margin a position requires at a given leverage. All conversion to the account currency uses live exchange rates. Computed live, nothing stored. Distinct from raw FX-rate feeds — this turns rates into the pip values, position sizes, margins and P&L a trader acts on.

api.oanor.com/fxcalculator-api

Tip Calculator API

Work out tips and split a bill — with exact cent maths so the per-person amounts always add back up to the total, no penny ever lost to rounding. The calc endpoint takes a bill, a tip percentage (15% by default) and a number of people and returns the tip amount, the grand total, the per-person amount, the effective tip percentage, and — when you want a tidy number — an optional rounding of the total either up to the next whole unit or to the nearest. When the bill does not divide evenly it produces a fair share list where a few people pay one cent more, so the parts sum precisely. The split endpoint divides any amount, optionally adding a tip first, evenly among people and returns that exact per-person share list. Everything is computed in integer cents locally and deterministically, so it is instant, private and always balances. Currency-agnostic — the numbers work for any currency. Ideal for restaurant and POS apps, expense-sharing and group-payment tools, delivery and service apps, and everyday bill splitting. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This calculates tips and splits; for percentage maths in general use a percentage API and for invoicing margins use a margin API.

api.oanor.com/tip-api

GPA API

Calculate a weighted grade-point average (GPA). The calc endpoint takes a list of courses — each with a grade and the credit hours it is worth — and returns the credit-weighted GPA, the totals, and a per-course breakdown of quality points so you can see exactly how the average was formed. Grades may be US letter grades (A, A-, B+, … F) on the standard 4.0 scale, or 4.3 with the us_plus scale that gives A+ extra weight; percentages from 0 to 100 mapped to letters and points with the usual cutoffs; raw grade points given directly as numbers; or your own custom letter-to-point mapping for any institution's scheme. Courses can be passed as a JSON array or a compact string like "A:3,B+:4,C:2", and credits default to 1 for an unweighted average. The scales endpoint lists the built-in grade scales and their point values. Everything is computed locally and deterministically, so it is instant and private — no student data is stored. Ideal for student planners and dashboards, university and school portals, LMS and ed-tech apps, scholarship and admissions tools, and academic what-if calculators. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This computes GPA; for general statistics use a statistics API.

api.oanor.com/gpa-api

Typing Speed API

Measure typing speed and accuracy. Compute words-per-minute, characters-per-minute and accuracy from a character (or word) count and the elapsed time, optionally subtracting uncorrected errors for a net WPM; compare what was typed against a reference text to count per-character mistakes and score the attempt; and estimate how long a given amount of text will take at a target speed. Uses the standard typing convention that one word equals five characters. Perfect for typing tests and games, coding-speed tools, onboarding and skills assessments, and leaderboards. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. A focused typing calculator, distinct from general unit or percentage maths.

api.oanor.com/wpm-api

Percentage API

Everyday percentage maths as an API. Four clear operations: what is X% of a value (15% of 200 = 30); what percentage one number is of another (30 is 15% of 200); the percentage change between two numbers, with the direction and the raw difference (200 → 250 is a 25% increase); and applying a percentage increase or decrease to a value (200 + 15% = 230). Handy for discounts, tips and tax, growth and KPI deltas, progress bars, dashboards and quick spreadsheet-style sums — without writing a formula. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 5 endpoints. A focused calculator, distinct from a general math-expression engine.

api.oanor.com/percentage-api

Running Pace API

A running-pace calculator as an API. Work out pace and speed from a distance and a time (pace per kilometre and per mile, plus km/h, mph and m/s); compute the finish time from a distance and a target pace; predict your time at another distance using Peter Riegel's formula (T2 = T1 × (D2/D1)^1.06) — e.g. estimate a half-marathon from a 10K; and generate a split-time table for even pacing. Times accept seconds, M:SS or H:MM:SS. Perfect for running and fitness apps, race planning, training logs and pace bands. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 5 endpoints. Distinct from general unit conversion and from body-metric (BMI/BMR) health calculators.

api.oanor.com/pace-api

Business Days API

Working-day date math. Count the business days between two dates, add or subtract a number of working days from a date (negative goes backwards), and check whether a given date is a business day — all skipping weekends and any holidays you supply. Configure which days count as the weekend (Saturday/Sunday by default, or e.g. Friday/Saturday) and pass a list of custom holiday dates to exclude. Perfect for SLA and support deadlines, delivery and lead-time estimates, payroll and invoicing periods, and financial settlement dates. Pure local UTC date math — no key, no third-party service, deterministic and instant. Live. 4 endpoints. Distinct from a calendar date toolkit (which counts calendar days) and a holidays directory (which lists holidays).

api.oanor.com/businessdays-api

Geometry API

Calculate the geometry of common shapes. Get the area of 2D shapes (circle, square, rectangle, triangle — by base/height or three sides via Heron, trapezoid, parallelogram, rhombus, ellipse, regular polygon), the perimeter or circumference, and for 3D shapes the volume and surface area (sphere, cube, box, cylinder, cone, square pyramid). Pass a shape and its dimensions and get back the exact result plus the formula used. Pure local math — no key, no third-party service, instant and deterministic. Live. 6 endpoints. Built for CAD and engineering tools, education and e-learning, construction and material estimation, and any app that needs reliable shape math. Distinct from a generic expression evaluator or unit converter.

api.oanor.com/geometry-api

Financial Calculator API

Common money math as an API. Calculate a loan: its monthly payment, total interest and total cost — with an optional full amortization schedule and the effect of extra monthly payments. Break down a mortgage into PITI (principal & interest, property tax, insurance, PMI and HOA) from a purchase price and down payment. Project compound interest and savings growth with optional recurring contributions (future value, total contributions, interest earned). And compute ROI on an investment, with annualised return when you supply the holding period. Every calculation is exact, deterministic and instant — pure local math, no third-party service and nothing stored. Live. 5 endpoints. Built for loan and mortgage calculators, savings and retirement planners, fintech tools and budgeting apps. Distinct from market-data and bank-data services. No upstream key.

api.oanor.com/fincalc-api

Math API

A full math engine as an API, powered by mathjs. Evaluate any expression — arithmetic, hundreds of functions (sqrt, sin, log, gcd, factorial, combinations, …), constants (pi, e), complex numbers, matrices and number theory — with optional precision control (e.g. 2+3*sqrt(16) → 14, pi at 5 digits → 3.1416). Take the symbolic derivative of an expression with respect to a variable (x^2+3x → 2*x+3), and simplify algebra (2x+3x → 5*x). No formula libraries to bundle, no maths to reimplement: send an expression, get the answer. Ideal for calculators and STEM education apps, spreadsheet and form logic, quiz and homework tools, engineering and data dashboards, and any product that needs reliable server-side computation.

api.oanor.com/math-api

Health Calculator API

A complete health & fitness calculator suite in one API: Body Mass Index with category and healthy-weight range, Basal Metabolic Rate (Mifflin-St Jeor and Harris-Benedict), Total Daily Energy Expenditure with weight-loss/gain calorie targets, macronutrient splits (balanced, low-carb, high-protein, keto, endurance) with fibre, U.S. Navy body-fat percentage, ideal body weight across four classic formulas (Devine, Robinson, Miller, Hamwi), and daily water intake. Every endpoint accepts GET query parameters or a JSON POST body and works in both metric and imperial units. All computation is done locally with established public-domain equations, so responses are instant and the service is always available. Ideal for fitness trackers, nutrition apps, telehealth and wellness dashboards.

api.oanor.com/healthcalc-api