Entering and leaving

To whom it may concern,

I am a Danish citizen & student. I will be in Dubai on a transit 28-29 June. I will stay in Dubai 20-25 Aug. If I go to Abu-Dhabi on visits do I get renewed 96 hr. transit visa?Is visa necessary & how much is it?