unix hoc caculator