Icon

Example Data App - Sales Apportionment

Data App automates the calculation steps for sales tax report for the subscription data with dynamic selection of the 12-months period. Based on the user-specified start date of the taxation period, the Data App will automatically take the active membership falling into this period and compute the total sales per state based on the subscription fee.

Sales Apportionment Logic:
- Sales where billing zip code is unknown are being apportioned to all participating states.
- For the sake of simplicity, we have assumed that all states determine apportionment solely based on sales (i.e. not considering payroll and property apportionment factors.

Annotations and comments
  • Data App Description Data App automates the calculation steps for sales tax report for the subscription data with dynamic selection of the 12-months period. Based on the user-specified start date of the taxation period, the Data App will automatically take the active membership falling into this period and compute the total sales per state based on the subscription fee. Sales Apportionment Logic: Sales where billing zip code is unknown are being apportioned to all participating states. For the sake of simplicity, we have assumed that all states determine apportionment solely based on sales (i.e. not considering payroll and property apportionment factors. To interact with components: Right Click -> (Execute and) Open View To see the calculation steps and more explanation -> Right Click -> Component -> Open
  • syntax check
  • correct syntax
  • Header
  • css_header
  • colors
  • image size
  • logo image in base64 format.
  • predefined colors text
  • predefined colors background
  • predefined colors flowchart bg
  • predefined colors flowchart activation
  • Background Color Code
  • image base64 format
  • text Color Code
  • flowchart bg Color Code
  • flowchart activation Color Code
  • Flow Chart Header Logic
  • Add a divider line
  • Remove Duplicate Entries
  • ZIP Code Database of States with Tax Rates included
  • Membership Data
  • Restore Zip Codes
  • Header & instructions
  • Calculate Apportioned Sales from & for all Sates
  • Calculate Total Sales: Sales * Apporttion
  • Totals per State
  • Total Sales for all unknow states
  • Total Sales for all States
  • Customize colors
  • Specify the beginning of the taxation period in the component view
  • Determine end of the taxation period (+ 12 months)
  • Creating 2 Flow Variables: Beginning and End of the Taxation period
  • Remove unneeded columns
  • Rename columns back to match the input table names
  • Select a column with Expiration Date
  • Select a column with Activation Date
  • Filter out the entries, where AC > ED
  • Filter out, where AC < SD & EX < SD
  • Filter our entries, where EX < AC
  • Beginning of 12-moth period
  • EX - SD
  • 12 months
  • EX - AC
  • ED - AC
  • Upper: AC < SD Lower: SD < AC < ED
  • Upper: SD < EX < ED Lower: the rest: EX > ED
  • Upper: EX < ED Lower: EX > ED
  • Convert Data Type
  • Create two columns containing SD and ED for further computation of duration
  • Subscription fee * Duration = Sales
  • Calculate Taxes: Total Sales * Tax Rate
  • State Taxes
  • Trigger re-execution
  • Set the Subscription Fee
  • Append Tax Rate Information

Nodes

Extensions

Links