calculate of gasoline using iOS