done invoice calculations in angular javascript client