Text this: The algorithm for determining the remaining resource of motor oil