Drilling calculator