How would you use window functions to calculate running totals or rank records in a financial dataset at BHG Financial?