Previous record property data

Is there a way to get a properties value from a previous record to be used in a calculation in the current record from the same collection?

can give an example