calculate loan spreads