@HoursForward variable is not defined in the script. Needs to be DECLAREd and can't be 0 if you want results.
Also, [LastSuccessfulExecution] seems to be broken. Showing "Never", when my jobs have finished, successfully, very recently.
Useful script otherwise. Thanks!