Great.. Matlab ye yahi hai..
If your train is running late by more than three hours at the station where your journey begins and you do not want to undertake the journey, you can cancel the ticket. No cancellation charges or clerkage fee is charged and full amount is refunded even for confirmed tatkal tickets. For e-tickets, the TDR should be filed before the actual departure of the train for availing full refund. For PRS tickets, the ticket should be surrendered before the actual departure of the train.