Equations modeling attendance