Installing a tankless water heater next to electric service panel
The 30” requirement can start at the left side and be measured to the right. As far as the vent you will want to extend it through the roof. The amount of heat coming off a tankless is much hotter than a standard tanked water heater.