fixed unsupported operand type(s) for -: 'NoneType' and 'int'
formatted code
refactored penalties
add correct penalties when receiving payment from apartment