How to avoid financial traps and optimize the terms of your loans