Concretely, the answer depends on exactly which dose and which vial you are asking about, but the method is always the same.
Worked example, because the general form is easier to trust once you have seen it once. Take a 10 mg vial and add 2 mL of diluent: the concentration is 10 ÷ 2 = 5 mg/mL. A 0.5 mg dose is 0.5 ÷ 5 = 0.1 mL. On a U-100 syringe, where 1 unit = 0.01 mL, that is 0.1 ÷ 0.01 = 10 units. Change the diluent to 1 mL and the same dose becomes 5 units — same dose, half the resolution.
The concentration you actually work with is label claim times content fraction divided by actual diluent volume, which is usually not the same as the nominal concentration because content is usually not 100 per cent and you rarely measure the diluent volume to 0.1 mL precision.
The content assay results from major testing services show that nominal vial claim and measured content differ by one to ten per cent, making content a driver of dose error.
The limitation is that technique reduces risk, it does not remove it, and nothing you can do outside a controlled environment makes a non-sterile preparation sterile.
Write the arithmetic on the vial label. It costs nothing and removes the step where you reconstruct it from memory.