Thank you Mr Shorty , with your help and one change i seem to have cracked it gp=(sp/1.2-mycost)/sp*1.2