UV Tiling math -> how to stick empty space inbetween tiles

what if tile is rectangle not square, please help