Yes Your calculation is incorrect because pre-PR time is counted as half days up to a maximum of 365 days, not just from protected person status.
In this case, the person has enough pre-PR time to hit the full 365-day cap.
So the correct total is:
365 (pre-PR capped) + 618 (post-PR) = 983...