AHV payments if retiring early

Does anyone have any links on who to calculate the RAV contributions required if you take early retirement and live of savings until you reach the official retirement age?

I remember when my father-in-law (RIP) did this he got hit with a big bill because they calculated int based on his assets since he had zero income. I want to avoid ending up in the same situation...

As it happens, I was looking into a similar question recently and can suggest starting here: https://www.ch.ch/en/ahv-persons-not...early-retirees .

There was also a video on the AHV Vaud site in French about the calculations that I found useful, but I’m not sure how that applies to Bern. I’m sure Bern has similar resources and if you call the AVS office, someone should be able to answer your questions.