SunSetRise Algorithm Low Accuracy Equations in PDF format from NOAA Edge cases Not every location has a sunset or sunrise on every day. In fact, it can take months for the next sunset/sunrise to happen. A day can have a sunset before a sunrise on the same day