There's no midnight deadline rule in ACH-land. The normal return deadline calls for the returned entry to be received by the RDFI's ACH Operator by its deposit deadline for the Return Entry to be made available to the ODFI no later than the opening of business on the second Banking Day following the Settlement Date of the original Entry.
Translated: If Settlement Date is Monday, the Return Entry has to be available to the ODFI by the opening of business on Wednesday. So you have to get it submitted to your ACH Operator (FedACH or whoever) in time to make that delivery deadline.
If you can't make it in time, you can request permission from the ODFI for a late return (get it emailed or faxed to you to CYA). Then you can use an R31 to send it back by whatever deadline you and the ODFI agree upon.
_________________________
John S. Burnett
BankersOnline.com
Fighting for Compliance since 1976
Bankers' Threads User #8