Periodic heat flow through flat roofs