compute the right attendance modes
compute the right attendance modes