<body ng-app="" ng-controller="ctrl">
<div>I'm going <input type="number" ng-model="miles"/> miles at <input type="number" ng-model="speed"/> mph, gas costs $<input type="number" ng-model="price"/>/gal, my car gets <input type="number" ng-model="mpg55"/> mpg at 55 mph and <input type="number" ng-model="mpg70"/> mpg at 70 mph.</div>
<div ng-repeat="s in speeds()">If you go {{ s.speed }} mph, you'll save {{ s.mins | number:0 }} minutes but you'll spend ${{ s.cost | number:2 }} extra on gas ({{ s.cost / s.mins * 100 | number:0 }} cents/min).</div>
</body>