Deductions & credits

I have read elsewhere that if the work is temporary (less than 12 months) then mileage is deductible.