I have used the Gmail API in Google Apps Script to calculate my monthly uber credits usage. The company where I work provides fixed uber credits per month and I use the script to calculate how much over / under I am.
It's a small code hosted on github : https://github.com/himanshujaju/uber-monthly-expense