Section 115(9) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(9)If, however, the funeral is to take place at a distance from the ship or port in which the flag is flying, the flag shall be kept at half-mast until sunset on the day on which the body is removed from the ship or port for the purpose of burial or cremation.