Part III Case: Planning the Plant’s Hours for 2027

Accounting Analytics: An Integrated Approach

In this case

Part III of V: Accounting Analytics with SQL · The case that closes this Part

  • The Situation
  • The Data You Will Use
  • Requirements
  • Looking Ahead

What should the plant plan for?

  • The audit found overtime the time clock alone cannot support
  • The controller must settle the plant’s hours before the books close
  • She needs a plan for the new year, and the entries that close the old
  • You are the staff accountant of Chapters 9 to 11 again

What you will hand in

A decision memorandum of no more than two pages, with a one-page appendix of exhibits: the corroboration matrix, output against hours, the bridge of the variance, the 2027 plan against the status quo, and the proposed adjustments. Each exhibit shows only the results that carry the decision, and the full tables stay in Case.sql. Submit Case.sql as well, with its header complete and a comment above every query.

How your work will be judged

  • A script that another person could rerun: a documented header, a comment on every query, views for the populations it reuses, and a reconciliation of each population before it is tested.
  • Evidence graded for independence as well as agreement, with honest limits on what the output comparison can show.
  • A bridge of the variance that sums to the ledger, and measures that explain its payroll line on stated calendars.

How your work will be judged (continued)

  • A plan with its assumptions in one place, a capacity check, and scenarios that show what each assumption is worth.
  • Adjusting entries that separate the effect on income from the effect on the balance sheet, and a clear reason why identified abnormal costs are expensed while normal conversion costs need a separate allocation analysis.
  • A memo written for the controller: concise, organized by perspective, careful with the word “unsupported”, and ending with a recommendation she can act on.

The Situation

The audit left one question open

  • The plant’s records reconcile, and the pay fits the hours and rates on file
  • The growth in overtime sits on surge days
  • On a surge day, every hourly employee clocked the same hours
  • The timekeeping records alone cannot show those hours were worked

Four questions from the controller

  • Do records outside the time clock support the surge-day hours?
  • What did the extra hours produce, and what did they cost?
  • What should the plant plan for the new year, and should standards change?
  • What do the latest year’s statements need before they are final?

Call the hours unsupported, not unworked

  • The records show hours that cannot be supported
  • They do not show hours that were never worked
  • Each employee was paid on their own register
  • Time entered in bulk for work really done remains possible

The Data You Will Use

Work in Case.sql

  • Use CharlesRiver_Work.sqlite, the working copy, in a new editor tab
  • Give Case.sql a header like Audit.sql’s
  • Put a two-line comment above every query
  • Reuse Tutorial 11.3’s view and Audit.sql’s tests L5 and L6

Tables the chapters did not query

  • TimeClockPunch: the badge punches behind each clock entry
  • EmployeeShiftRoster and ShiftDefinition: the scheduled shifts
  • EmployeeAbsence and AttendanceException: absences and exceptions
  • WorkCenterCalendar and RoughCutCapacityPlan: days, hours and load
  • FixedAsset: the equipment, and where its depreciation is charged

Watch out: three calendars, and mixing them misleads

  • Time records follow the date worked, and end before the year does
  • The ledger and the payroll follow the pay date
  • Output follows the completion date, and includes weekends
  • Compare hours with output on work dates; measure cost on the ledger

Check your understanding

Which calendar does each measure follow?

  1. The hours an employee worked
  2. The payroll cost in the ledger
  3. The units the plant completed
  4. A comparison of hours with output

Each measure has its calendar

  1. The work date
  2. The pay date
  3. The completion date
  4. Work dates, with output cut off at the last day with time records

Watch out: dates without days, and tables that fan out

  • Roster times carry no date: build a timestamp with ||
  • Compare times with julianday: a late clock-out may fall a day later
  • Several tables fan out when joined: summarize each side first
  • Count the plant’s hourly employees, not the whole cost center

Requirements

Six requirements, one plan

  • Requirement 1: Build the case script and its populations (Chapters 9 and 10)
  • Requirement 2: Test whether other records support the surge days (Chapters 10 to 12; auditing)
  • Requirement 3: What the hours produced and what they cost (Chapters 10 and 11; managerial accounting)
  • Requirement 4: Plan the 2027 hours and conversion cost (Chapter 11, with the planning of Chapter 7; managerial accounting)
  • Requirement 5: Close the fiscal 2026 statements (Chapters 11 and 12; financial reporting)
  • Requirement 6: Write the decision memo

Build the case script and its populations

Requirement 1 · Build the case script and its populations (Chapters 9 and 10)

  • Produce: the header, profiles, link tests, and two views
  • Tool: Case.sql, with the views saved in the working copy
  • Revisit: Chapter 10’s data profile, and Tutorial 12.3’s test H9
  • Check: the SurgeDays view reconciles to what Tutorial 12.3 found

Test whether other records support the surge days

Requirement 2 · Test whether other records support the surge days (Chapters 10 to 12; auditing)

  • Produce: surge against ordinary days, a control rerun, a plans test
  • Tool: conditional aggregation and a window function
  • Revisit: Chapter 11’s CASE and windows, and Chapter 12’s tests
  • Check: a corroboration matrix grades each test for independence

Check your understanding

Is the record independent evidence?

  1. A customer’s own confirmation of its balance
  2. A report prepared by the person whose results it measures
  3. A carrier’s record of a delivery
  4. An approval signed by the person who requested it

Independence depends on who made the record

  1. Independent, once you confirm it came from the customer
  2. Not independent: its author has a stake in it
  3. Independent, once you confirm the carrier recorded it
  4. Not independent: requester and approver are the same

What the hours produced and what they cost

Requirement 3 · What the hours produced and what they cost (Chapters 10 and 11; managerial accounting)

  • Produce: output against hours, unused capacity, two costs, a bridge
  • Tool: SQL with a window frame, on work dates
  • Revisit: Chapter 10’s measure of the plant, Chapter 11’s frames, test H5
  • Check: the bridge sums to the ledger, and each measure names its calendar

Plan the new year’s hours and conversion cost

Requirement 4 · Plan the 2027 hours and conversion cost (Chapter 11, with the planning of Chapter 7; managerial accounting)

  • Produce: the plan’s hours, capacity check, and conversion cost
  • Tool: a one-row Params CTE, and a Scenarios CTE built with UNION ALL
  • Revisit: Chapter 11’s CTEs, and Chapter 7’s documented model
  • Check: each assumption’s value, source and effect is in the comments

Close the fiscal year’s statements

Requirement 5 · Close the fiscal 2026 statements (Chapters 11 and 12; financial reporting)

  • Produce: the year-end payroll accruals, entries, cutoff, and effect
  • Tool: SQL, with working days counted in WorkCenterCalendar
  • Revisit: Tutorial 12.1’s tests L5 and L6, and Chapter 6’s statements
  • Check: the effect on income is kept apart from the balance sheet

Check your understanding

Inventory, or the period’s expense?

  1. Fixed production overhead at normal capacity
  2. Idle facility expense
  3. Abnormal spoilage
  4. The materials of the units completed

The inventory standard decides

  1. Inventory: allocated on normal capacity
  2. The period: an abnormal cost
  3. The period: an abnormal cost
  4. Inventory: a cost of the product

Write the decision memo

Requirement 6 · Write the decision memo

  • At most two pages, in the order of the controller’s questions
  • Auditing: the evidence, its independence, and the control
  • Managerial accounting: the hours’ output and cost, and the plan
  • Financial reporting: the adjustments, and why abnormal costs stay out of inventory

Before you submit

  • Case.sql runs top to bottom, with its header and every comment
  • Each population reconciles before any test relies on it
  • The appendix holds the five exhibits the case lists
  • The memo keeps to its length, and ends with a recommendation

Looking Ahead

From queries to reports

  • The case summarized records by day, week and year against a plan
  • The views you saved can run again on next month’s records
  • Part IV turns results like these into reports managers explore
  • Chapter 9’s CSV exports are one way to bring them there

About these slides

These slides accompany Accounting Analytics: An Integrated Approach, licensed under CC BY-SA 4.0. Every requirement shown comes from the case:

https://aa.accountinganalyticshub.com/cases/part-3-case.html