It usually lasts three or five days if you are playing a two inning match. Each day you would play for at least six hours. If you play a one inning match it would probably last around one day playing for six hours or more. Of course you can make it as long or short as you wish.
Cricket matches can last anywhere from three to five days with about six hours of play in each match. A single day match can last upwards of six hours.