Peptivoice

Transparency · runs live in your browser

Calculator test suite

Every case below executes right now, in your browser, against the exact code our calculator runs. Anyone can audit the math; that is the point.

12/12 tests passing
CaseExpectedComputedResult
10 mg vial + 2 ml, 2 mg dose (U-100)40 units · 5 mg/ml · 5 doses40 units · 5 mg/ml · 5 dosesPASS
5 mg vial + 2.5 ml, 250 mcg dose (U-100)12.5 units · 2 mg/ml · 20 doses12.5 units · 2 mg/ml · 20 dosesPASS
5 mg vial + 2 ml, 500 mcg dose (U-100)20 units · 2.5 mg/ml · 10 doses20 units · 2.5 mg/ml · 10 dosesPASS
10 mg vial + 2 ml, 2 mg dose (U-40)16 units · 5 mg/ml · 5 doses16 units · 5 mg/ml · 5 dosesPASS
10 mg vial + 4 ml, 1 mg dose (U-100)40 units · 2.5 mg/ml · 10 doses40 units · 2.5 mg/ml · 10 dosesPASS
10 mg vial, 2 mg dose, target 40 units (U-100)2 ml of water2 ml of waterPASS
5 mg vial, 250 mcg dose, target 25 units (U-100)5 ml of water5 ml of waterPASS
10 mg vial, 2 mg dose, target 16 units (U-40)2 ml of water2 ml of waterPASS
Dose larger than vial raises a cautioncaution flagcaution flagPASS
Sub-2-unit draw raises a cautioncaution flagcaution flagPASS
Draw beyond syringe capacity raises a cautioncaution flagcaution flagPASS
Invalid input produces no result, not a wrong onevalid: falsevalid: falsePASS

Formulas under test: concentration = vial mg ÷ water ml; volume = dose ÷ concentration; units = volume × units-per-ml (100 for U-100, 40 for U-40); reverse water = vial × target units ÷ (dose × units-per-ml). Found a case we should add? Tell us: contact@peptivoice.com