Calculating of a state of attendance