How to use within correctly.

When used with a time expression, within means 'inside' or 'inside the limit'.

Within 24 hours means 'in 24 hours or maybe sooner'.
Within a week everything will be finished.
This means that everything will be finished in seven days or earlier.

I'll be back within an hour.

The speaker is saying that he'll be back in sixty minutes at the latest.