A judgment given, amount to be ascertained by the prothonotary or other person, shall bind from the time of its entry, if the amount is ascertained and entered upon the docket before the first day of the term next after that in which the judgment is given; but otherwise only from the time of entering upon the docket the ascertained amount.