Formula and method
Formula: Energy = power (kW) × hours; cost = energy × rate. Result is reported in cost.
Worked sample
For example, with inputs 12 and 3, this calculator evaluates the stated formula using those values. The numerical result is displayed when you enter the sample inputs.
Validation and limitations
Both inputs must be finite numbers; zero is rejected where it would cause division by zero. Use power in kW and price per kWh. Estimates exclude fixed charges and real-world efficiency changes.