Simple(-minded) line calculator