How could I make an AI move towards a player through navmesh but stop after certain distance traveled?

Say I use Get Path Length between an AI’s and player’s locations and it returns 1000. How could I have the AI move towards the player based on some float value (say 500 units) along that path?

(There are similar questions, but they seem to only address making an AI stop moving towards a player after path distance between them is too far)

Relatively new, hopefully that makes sense.