How is timing calculated?

On my app it says i’m in my 6th month of pregnancy (starting at day 147) but on the breakdown says i’ve only been pregnant for 4 months and 3 weeks?

just curious about why/how the months are determined and why it sounds so inaccurate/odd