Automatic self-learning fuel calculation