GAMS Sum over a subset

I have the following sets, variables, and parameters in a GAMS model.
image.png
Any help is much appreciated.

Hi
You can use a condition to sum:

sum(t$(t.val < h.val+1), ...)

Cheers
Renger

Thank you!