The time of delay is determined by the airline, but two hours is usually a good rule of thumb. For more specific information, you should consult the contract of carriage on your airline's website.