Thats where it gets complicated. There is a calculation to work it out but I cant remember it as it is a few years since I had to work it out.
My employers do compassionate leave on case by case basis, but as with most others the guidelines are immediate and close relatives only, although consideration is given to other circumstances.