def METHOD_NAME(self, budget_year, budget_phase):
    qs = self
    res = Expenditure.objects.filter(
        financial_year__budget_year=budget_year,
        budget_phase__name=budget_phase,
        project__in=qs,
    ).aggregate(total=Sum("amount"))
    return res["total"]