Every country is different. In the states if you advance your ratings to better your job, its a write off.
I think the best suggestion is to invest some change in an opinion from an Attorney who specializes in Taxation.
At least then you can owe two different sources. Advice from Pilots is usually free and worth about the same amount.