Find date interval between two dates in pandas

I want to find if there are records with an interval of more than a month in a table. Sample input data- 

name date
foo 2022-01-01
foo 2022-01-23
foo 2022-03-01

Output should be:

1. 22

2. 37

3. 0