How many ways are there to distribute n candies to k kids such that no child gets more than m − 1 candies.

Please translate this into a

"select this from this, then choose this from this"

sentence for me, and then I will write an equation.

If u want to answer directly please use spoiler tags.