double calculates