I travelled from outside of Europe to Madrid, Spain via Frankfurt, Germany. As my first point of entry into the Schengen area was Germany my immigration was done there. I had initially planned to stay for 22 days and I told the same to the immigration official. My visa-free stamp says the number 22 next to the date.
However I am loving Spain and I want to extend my trip.
Can I stay for the full 90 days which are allowed within any 180 day period or do I need to leave within 22 days?
Also in case I am allowed to stay for the full 90 days, what is the significance of the number "22" which was stamped on the passport. Are the number of days stamped on the passport to verify that the traveler is actually staying for the length of time which the traveler stated at the time of entry?
Are there any negative consequences to staying for more than the amount of time which was stated at the time of entry?