Calculating the cooking time for a piece of beef