What's the function to calculate creep cost?