simple calculation for vim