Update Profit Analysis

Updated the layout and fixed the functions