How long will it take to refund the amount if the transaction is failed ?

Refunds take palace T+1 basis.