replaced python dependency (just for calculating a float) with bc