Generate salary on the basis of employee checkins in a month

how to generate salary automatically at the end of the month on the basis of employee checkins.
Is it possible? If yes then please tell me about complete procedure from employee checkins to generate salary slip.