Average Investment Formula