Skip to content

Calculator app

Released

Kwantity

A calculator you can program, where the units are part of the answer.

Overview

A fast, programmable calculator for iOS and Android, built for pilots as a lightweight EFB and for anyone who needs their own calculators rather than a fixed set of buttons. Units are first-class — `120 kt * 1.5 h to nm` is `180 nm`, and adding a mass to a distance is an error rather than a wrong answer. Macros, functions and scripts are saved in a library, and every function becomes a form-driven calculator.

What it does

Units are first-class
Values keep their dimension through a calculation, so `35000 ft to m` and `2000 mAh * 3.7 V` both type-check. Around 90 units across length, mass, time, speed, angle, temperature, pressure, energy, power and electricity.
Programmable, not just configurable
A real little language — variables, if/else, while, for..in, lists, strings and user functions. Anything you define becomes available everywhere, including as a tappable form.
Written for a phone keyboard
Functions can be called without parens or commas: `tod 35000 ft 1500 fpm 450 kt` is the same as the parenthesised form, so a long expression does not become a punctuation exercise.
Built-in help
`help` lists everything by category and `help <name>` explains one function, unit or variable — including your own, picking up the comment written above them.
Units that compose
Multiply or divide any two units and the result names itself: `2 ft * 3 ft` is `6 ft2`, and `180 lb * 85 in` is `15300 lb_in` — a weight-and-balance moment, divisible straight back out to find the arm.
A logbook that totals itself
Add each leg as a duration and the total reads back in H:MM, the form a logbook and a flight plan both want.
Functional where it helps
Anonymous functions and a pipe operator, so `10 kt |> half |> half` reads left to right, and `if/then/else` works as an expression inside one.
Scripts for the jobs people actually have
Twelve bundled, editable script libraries organised as domain › category: flight planning, weight and balance, navigation, logbook, cooking, DIY, finance, health and electronics.
Densities done honestly
A cup is a volume, so `flour(1 cup)` is 125 g while `honey(1 cup)` is 336 g. Density is a real unit, so `flour(500 g)` is refused as a mass-to-volume conversion rather than guessed at.

Built with

  • Flutter
  • Dart
  • iOS
  • Android
  • Linux desktop
  • macOS

Worth knowing

The engine stands alone

Lexer, parser, interpreter, units and formatter are pure Dart with no Flutter dependency, so the part that decides what an expression means is tested and reusable on its own.

Rules of thumb are labelled as such

The aviation built-ins are there for cross-checking, not for replacing the aircraft's performance data — and the same caution is stated for the cooking densities, health formulas and DIY allowances.

Where it runs today

The iOS build is going through release now, with the app icon in place for both iOS and Android. macOS and Linux desktop targets are configured and the app builds against them, with Linux desktop verified.

Interested in Kwantity?

Ask about availability, licensing, or having something similar built for your own domain.

Get in touch

More work

All projects