multiple functions for gas needed and miles driven