Notwithstanding an agreement respecting the length of time during which a deposit is to continue, it may be terminated by the depositor on paying all that would become due to the depositary in case the deposit continued for such length of time.
N.D.C.C. § 60-01-27