Skip to content

hallie/RentControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mission: Control the Rent

Here's a pretty simple algorithm for determining how much rent would change when people come in and out of the house.

##How to Use To run with defaults, simply go:

python rent_calculator.py

There are currently 7 optional parameters you can add:

  • --bld or --bad_lighting_deduct, which is the amount off people get in rooms with bad lighting (ex. windows that don't open, or are very small/don't bring in natural lighting) (defaults to 100)
  • --rd or --round_dollar, which takes all of the extra cents lost in rounding the final numbers to dollars, and dumps them on the person/people paying the least rent. (defaults to true)
  • --cw or --common_weight, the decicimal representing the percentage of the cost of the common space that gets taken into account when calculating overall rent. (defaults to .5)
  • --cas or --calculate_as_singles, shows what the price would be if all rooms were singles.
  • --rs or --rent_sum, the overall rent
  • hs or --house_size, the total size of the house
  • --f or --file, the path to the csv file with all the data

Example:

python rent_calculator.py --bld=150 --rd=False --cw=.7 --cas=True

This would raise the bad-lighting deduction to $150, set 70% of the common area cost as a default cost per person, doesn't round the cents, and assumes there is only one person per room.

The CSV file expects the following fields:

'room_id', 'sqft', 'has_window', 'percent_usable', 'occupied_by'

About

Pain-free way to Calculate Ya Rent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages