Apartment rentals in Madrid are quite expensive and the cost of living as well.
Lets say flat rental could be 1000/1400 Eur per month.
You need 150 Eur weekly for meals/living/incidentals. Transportation to and from Barajas? another 150/350 pm cost.
If you took a loan to pay the TR/self fund your training, then you also have to pay back about 500/700 pm. That is if you are single with no kids.
Its a 100000 Eur career (investment) that should have a higher return.