Labor percentage php post function