The maths behind Kahungu's payday proposal