It takes only 20 minutes to go from my home to the school on foot.
It speeds me only 20 munites to walk to school from home.
It takes me 20 minutes only to walk to school from home.