NP-complete problem for finding target price