def renewal_rate(self): """The percentage of lease renewals as a total of leases due to expire.""" # XXX I'm utterly unconvinced that this is a sensible metric, but it is # specified in Sprint 1. -Dave return div_or_0(self.lease_renewal_notices, self.resident_decisions)
def lease_cd_rate(self): """The percentage of lease cancellations as a total of lease applications.""" # XXX this also seems like a nonsense number to me. -Dave return div_or_0(self.lease_cds, self.lease_applications)
def cost_per_exe_vs_lowest_monthly_rent(self): """Return the percentage of the monthly rent required to get a lease execution.""" return float(div_or_0(self.cost_per_exe, self.lowest_monthly_rent))
def leased_rate(self): """The percentage of leasable units that are actually leased at end of period.""" return div_or_0(self.leased_units, self.total_units)
def app_exe_perc(self): """The conversion rate from lease applications to executions.""" return div_or_0(self.leases_executed, self.lease_applications)
def usv_exe_perc(self): """The conversation rate from usvs to lease executions.""" return div_or_0(self.leases_executed, self.usvs)
def inq_tou_perc(self): """The conversion rate from inquiries to tours.""" return div_or_0(self.tours, self.inquiries)
def tou_app_perc(self): """The conversion rate from tours to lease applications.""" return div_or_0(self.lease_applications, self.tours)
def usv_inq_perc(self): """The conversation rate from usvs to inquiries.""" return div_or_0(self.inquiries, self.usvs)
def occupancy_rate(self): """The percentage of occupiable units that are actually occupied at end of period.""" return div_or_0(self.occupied_units, self.total_units)
def target_lease_cd_rate(self): """The target number of lease cancellations units we'd like to achieve.""" # XXX copied from lease_cd_rate return div_or_0(self.target_lease_cds, self.target_lease_applications)
def target_renewal_rate(self): """The target number of leased units we'd like to achieve.""" return div_or_0(self.target_lease_renewal_notices, self.target_resident_decisions)
def occupancy_rate_calc(occupied_units, occupiable_units): print(occupied_units, occupiable_units) return div_or_0(occupied_units, occupiable_units)