Depending on the severity of the break/fracture (along with your age), estimate approximately 1 month per rib
There isn't much to do aside from do your best to rest - as time will heal the rib(s)
Most things you do will be excruciating like sleeping or simply coughing- it will bother you even to cough
Getting in and out of be will not be fun either
As others have mentions there is value in getting X-ray to determine extent of injury
The danger is either a collapsed lung(s) or as someone else mentioned, a piece of the rib possibly puncturing another organ
Good luck