completed function formula

setup calculation for function dreamPower