Glib answer courtesy of Piet Hein (https://en.wikiquote.org/wiki/Piet_Hein):
Freedom means you’re free to do
Just whatever pleases you;
If, of course that is to say,
What you please is what you may.
Slightly less glib answer: I’m not sure what you mean by “freedom”. You are always free to do whatever you want to do (within the bounds of what is possible). You are free to please your parents by changing your shirt. You are free to exercise your independence by not changing your shirt. Indeed, I don’t see any way to rid yourself of this bothersome “freedom”. Quite simply, it seems to be an inherent part of your existence.
So when you state “You are free when you do what you want to do.” you are quite correct. The difficulty is not in doing what you want to do, but in knowing what you want to do.