The above method makes use of a BigDecimal. This is wrong. It should be an int. Originally, before the BigDecimal conversion, it was a Double. This method should have never been converted.
Also, it does time internal calculation wrong. It will have the same daylight savings time problem, when now is after DST, and the createdDate is before DST. The time will be 1 hour short, which will get rounded down to the next whole day. Is there any existing logic to calculate the number of whole days between 2 times?