如何将此Excel公式转换为vue.js脚本

时间:2019-07-10 08:34:06

标签: vue.js

如何将此Excel公式转换为vuejs脚本

=$B$23*(1-$B$25)*$B$13*(1-$B$14)*(1+$B$24)^(B36-1)-SUM($B$15:$B$18)*$B$23/$B$22


values

B23=100000,
B25=10%,
B13=9%,
B14=3%,
B24=1%,
B36=1,
B15=6000,
B16=1125,
B17=700,
B18=0,
B22=1000000

Excel中的结果= 7074.50

return this.investmentamount * (1-(this.vacancyrateprecentage/100)) * (this.rentPercentage/100) * (1-(this.managementpercentage/100)) * (1+(this.annualrentalgrowthpercentage/100))^(1-1)-(this.servicecharges+this.repair+this.propertyinsurance+this.vat)*this.investmentamount/this.propertyprice;

我将为在vuejs中输入的值设置变量

我使用“ / 100”表示百分比

我在vuejs中得到的结果= -7667

0 个答案:

没有答案