Building Embera

How we tested our syringe converter against 24 known cases

Blog · Updated September 26, 2026 · By the person building Embera

In short

The converter's math lives in one small piece of code, checked against 24 examples worked out by hand every time the app is built, plus tests for the warnings. The same 24 checks run on the free web version. It converts the dose on your prescription into water and syringe units, and never suggests a dose.

When you mix a vial, a wrong number is not a cosmetic bug. So the mixing & syringe converter in Embera was the first thing to get real tests.

What the converter does, and what it does not do

You enter the amount in your vial and the dose on your prescription. You pick the syringe mark you want your dose to land on. The converter tells you how much water to add, and shows the math:

10 mg ÷ 2 mL = 5 mg/mL → 2.5 mg = 0.5 mL = 50 units

It never suggests a dose. It is a unit conversion: mg to mL to syringe units. The dose is always yours, from your prescriber or pharmacy label.

Why it works backwards

Most mixing calculators ask how much water you added and hand you something like “17.3 units”. Nobody can draw 17.3 units accurately. It was a complaint we saw in peptide communities, in a thread with close to a hundred comments. So Embera asks where you want the dose to land (a clean mark like 25 or 50 units) and works out the water. The free web converter does both directions.

The 24 cases

The math is kept in one small, separate piece of code, so it can be tested on its own. Then 24 examples were worked out by hand, covering:

For each case, the test checks the water to add, the syringe units, and that the concentration times the volume gives back exactly the prescribed dose. These tests run every time the app is built. If a future change breaks one, the build fails before anyone sees it.

The guard rails

Tests prove the arithmetic. Guard rails catch results that are arithmetically right but unusable:

Each of these has its own test too.

The web version runs the same checks

The free mixing & syringe converter on this site uses a copy of the same formulas, and the same 24 cases run against it. If the app and the site ever disagreed, the site’s tests would fail.

What testing cannot do

Tests prove the converter does the math it was designed to do. They cannot check that the numbers you type are right, or that your syringe is U-100. Always check your pharmacy label and ask your pharmacist if a result surprises you.

Free toolMixing & syringe converterTurn the dose on your prescription into syringe units, or plan how much water to add.

Embera is a personal tracking app, not a medical service, and the people writing these guides are not clinicians. This article is general information, not medical advice. Always follow your prescriber's or pharmacist's instructions.

See your own week, not an average one.

Embera turns the shots and check-ins you log into your own patterns. Free to use, no account, your data stays on your iPhone.

Get notified at launch