models.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:DreamRich 作者: DreamRich 项目源码 文件源码
def remain_necessary_for_retirement(self):
        assets_required = -self.assets_required()
        rate_target_profitability = self.financial_planning. \
            real_gain_related_cdi()
        years_for_retirement = self.financial_planning.duration()
        current_net_investment = self.financial_planning.patrimony.\
            current_net_investment()
        total = numpy.pmt(rate_target_profitability, years_for_retirement,
                          current_net_investment, assets_required)
        total /= 12
        if total < 0:
            total = 0

        return total

    # Will be considerate only goals that represent properties and equity
    # interests
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号