Does the calculation apply to steady DC?
A transformer relies on changing magnetic flux. The turns ratio calculation here applies to an ideal AC transformer.
Use primary and secondary winding turns to estimate the voltage and current relationships in an ideal transformer.
The secondary voltage is the primary voltage multiplied by secondary turns divided by primary turns. A 500 to 100 turn ratio steps 24 V RMS down to 4.8 V RMS.
With ideal power transfer, the ratio of secondary current to primary load current is the inverse of the voltage ratio. The load sets the actual current.
A transformer relies on changing magnetic flux. The turns ratio calculation here applies to an ideal AC transformer.
It gives ideal ratios. Winding resistance, leakage and core behavior affect actual operation.