tested portfolio calculations