Implement for double caluclation