Hi, I personally have never used the recording function, I have always watched 'live' images. I know you can use a microSD card up to 256GB, but I don't know how many hours of recording correspond to. In any case, you can buy space on Xiaomi's cloud, to record for longer. I hope I was helpful.
I don't currently have the camera in use, I only bought it for the holidays to see when the cat comes to eat. I have a 256gb card in the camera and as far as I remember, the 256gb card should last about 3 days of continuous recording. But without guarantee. However, the 24 hours that you require are definitely possible.
But I wouldn't buy the camera again. The camera is not bad, but not good either. I have Reolink cameras in my holiday home, so I would recommend you have a look around. E.g. a reolink E1 Zoom. Costs a bit more, but definitely has a better picture and sound.