php code for Q Media budget builder