Various sources are used to provide electricity to power homes and devices. Hydroelectric power plants use the kinetic energy of falling water to turn turbines which rotate generators, producing electrical current. Other power sources like fossil fuels, nuclear reactions, wind and tides also use generators, converting the energy of motion into electrical energy. Generators have electromagnets surrounded by coils of wire, and their rotation produces the flow of electrons that becomes electricity. Electricity travels through power lines to homes where it powers various appliances and devices. The amount of electrical energy used can be calculated using the power rating and running time of devices.