calculate unit price