$40,171.78