The correct phrase is:
"Hay veinticuatro horas en un día."
This translates to "There are twenty-four hours in a day."