A simple resistance calculator for bash