JustPark price calculation in AngularJS