Hello and welcome to the forum.

Try this in K2:

=IF(AND(K$1>=$F2,K$1<=$F2+$H2),1,"")

Drag the formula to the right and down.