calculate and display different attendance values