Circadian clocks persist with a constant period (~24-hour) even after a significant change of the expression level of clock genes. To study the biochemical mechanisms of timekeeping, we develop the most accurate mathematical model of mammalian intracellular timekeeping, as well as a simplified model amenable to mathematical analysis. . Although much is known about cellular circadian timekeeping, little is known about how these rhythms are sustained with a constant period. Here, we show with simulations and analysis how a universal motif of circadian timekeeping, where repressors bind activators rather than directly binding to DNA, can generate oscillations when activators and repressors are in stoichiometric balance. Furthermore, we find that an additional slow negative feedback loop keeps this stoichiometry in balance and maintains oscillations with a fixed period. These results explain why the network structure found naturally in circadian clocks can generate ~24-hour oscillations in many conditions. I will also discuss the electrical activity of "clock" neurons and why they are different from how neurons are often thought to behave.