What the calculator does
The resistor only sees the voltage left after the LED string and any switch or driver drop.
The display uses milliamps, but the formula converts current to amps before calculating resistance and power.
E12 and E24 rounding choose the next higher standard resistor value, which usually lowers LED current slightly.