"linking" two input values in backtest

 
i have an EA that i want to optimize to trade for only four hours, within a nine hour period. the start and end times are different inputs. how would i go about increasing both values at the same time so as to reduce time backtesting?
Reason: