You can use this script
Though for historic months it can’t calculate storage payouts as the historic data for this is not kept in the info.db