calculate the maximum safe value of V.