Added computation of ideal capital