how long a vial lasts is easy math and mostly the wrong number
The math is trivial: total mass / mass per draw = number of draws. 10mg vial, 500mcg per draw, 20 draws.
Where it stops being useful: that assumes the limiting factor is running out, and usually it isn't. The beyond-use clock after reconstitution frequently expires before the vial does.
So the practically relevant number is whichever comes first, draws remaining or time since reconstitution. And the second one is the one people don't track.
This is the calc I'd most like the app to do for me, because it needs two facts that live in different places: the concentration and the reconstitution date.