Compute electricity cost from power rating, hours of use and the unit tariff, including daily, monthly and yearly totals.
输入功率 P(瓦)、用电时长 h(小时)与电价,求电费。