These are relatively new medications, so I think roughly a decade for Liraglutide and more for Semaglutide but I'd have to check. Medicare doesn't cover them yet sadly.
There is another promising obesity medication in Phase 3 trials at the moment so it's fair to expect increased competition & decreased prices in the coming years - although it's obviously hard to predict.