Maths : Keeping total of last 30 days and previous 30

Thank you; I will search for that keyword.