How to repay an emergency loan