unithub_rent_calculator 1.0.0
unithub_rent_calculator: ^1.0.0 copied to clipboard
A Dart utility for calculating rental property yields, mortgage repayments, and rental affordability. Designed for landlords, property managers, and tenants in New Zealand and beyond.
unithub_rent_calculator #
A Dart utility for calculating rental property yields, mortgage repayments, and rental affordability. Built for landlords, property managers, and tenants in New Zealand and beyond.
Features #
- Gross rental yield calculation
- Net rental yield (after expenses)
- Monthly mortgage repayment (fixed rate)
- Rent-to-income ratio and affordability check
- Weekly/monthly rent conversion
Getting started #
Add the package to your pubspec.yaml:
dependencies:
unithub_rent_calculator: ^1.0.0
Usage #
import 'package:unithub_rent_calculator/unithub_rent_calculator.dart';
void main() {
// Gross yield for a $750k property at $600/week rent
print(grossRentalYield(31200, 750000)); // 4.16%
// Monthly mortgage repayment: $600k at 6.5% over 30 years
print(monthlyMortgageRepayment(600000, 6.5, 30)); // ~$3792.65
// Is $600/week affordable on $95k income?
print(isRentAffordable(600, 95000)); // false (32.8% > 30%)
}
Additional information #
This package is maintained by UnitHub, an AI-powered property management platform based in New Zealand.