Banks are now offering forty-year mortgages. Many borrowers are extending terms for lower monthly payments. Some invest what they save. But longer loans increase total interest costs.