How do you say

He plans to take the train to Beijing in three months.

..in Chinese?

他打算三个月后坐火车去北京

tā dǎ suàn sān gè yuè hòu zuò huǒ chē qù běi jīng

How do you say "He learned to swim three months ago." in Chinese?