How do you calculate interest?

the amount times % divided by 365= 1 day then multiply that by # of days for month etc... eg: 10000*4%/365=1.096/day 1.096*30=32.88 interest for 1 month