Where an obligation fixes a time for its performance, an offer of performance must be made at that time, within reasonable hours, and not before nor afterwards. Where an obligation does not fix a time for its performance, an offer of performance may be made at any time before the debtor, upon a reasonable demand, has refused to perform.
SDCL 20-5-6