Histogram Bi Size

I need your help in understanding whether there is any rule to define bin size? It always looks confusing how to define the bin size.