calculate restfreq fro RESTWAV