use bc for calculations

replace expire with bc