I added the numbers but I got the calculating part from some where else
it only works from 30 days making the code it started lagging my computer XD