You pay only for the hours that the machine is up and running. If you plan to reboot the machine frequently, we recommend you use an elastic IP so your IP does not change constantly. This tends to confuse users and creates an edge case in the instance configuration that night eventually breaks it. Using an elastic IP is also a good first step towards using an organized domain to host the instance (instead of a Hossted domain).