Read about the rules:

Travel deduction, tax-free travel allowance and food and accommodation