Include funding loans in investment calculation