@timnollan You don't calculate for the 31 days in Jan. You calculate for the number of days from the previous month and same date.
E.g. if you were charged interest on the 30th of Jan, you are charged interest each day from the 30th December. If its Feb, I suspect it'll be the 29th.