A planetary hours calculator divides the day into twelve from sunrise to sunset and the night into twelve from sunset to sunrise, each hour ruled in Chaldean order. They are unequal: in June a daylight hour can be half as long again as a night one.

The ruler of a day is the ruler of its first hour, and the first hour starts when the Sun comes up. A chart cast at two in the morning belongs to the PREVIOUS planetary day, an off-by-one that makes a table of hours quietly useless if it is got wrong, and it is the single commonest error in a planetary hours calculator.
Sunrise and sunset here are the instants the Sun’s apparent altitude crosses −0°50′, which is refraction plus the solar radius. The tests check both against a second, independent computation of the same definition, for Bristol and for Belgrade, and require agreement to under a minute.
A planetary hour is a twelfth of the time between sunrise and sunset, not sixty minutes. In Edinburgh in June a daylight hour runs to about eighty-seven minutes while a night hour shrinks to thirty-three; at the equinox both sit near sixty everywhere. Any table that prints sixty-minute hours is not computing planetary hours at all.
The consequence is that the hour you want is rarely where a clock would put it. Start, end and length are on every row, in local time, so the hour running now is read rather than counted out.
Above the Arctic circle in summer there is no sunrise, and the scheme has no answer. The page says so instead of producing a table, because an hour table for a day with no sunrise is a number pretending to be an answer.
The rulers run in Chaldean order — Saturn, Jupiter, Mars, Sun, Venus, Mercury, Moon — repeating through the twenty-four hours. Because twenty-four is not a multiple of seven, the first hour of each day lands three places further along the sequence, which produces Sunday, Monday, Tuesday and the rest in the order the week actually has them.
That is a pleasant check on any implementation: if the first hour of consecutive days does not reproduce the weekday sequence, the table is wrong. This one is tested against exactly that property.
The hour and the day have different rulers most of the time, and both are printed. The tradition uses the day’s ruler for the character of the whole day and the hour’s for the moment, so an election usually wants the two to agree or at least not to fight.