Look Amira, I know you might expect an answer from a native speaker, however, let's have some discussion before the arrival of that native.
Within (adverb only): used before a certain time or period for example: We should have the test results back within 24 hours.
Inside (adverb/adjective/preposition): means in/into as if it part of it like for example: It’s raining. We’ll have to go inside. OR She could feel the baby kicking inside her.
Hope this was somehow useful.
Source: Longman Dictionary.
Good day,
Mohamed.