The Challenge: Manual Working-Capital Assumptions

Most finance teams still anchor their cash forecasts on a handful of manually set assumptions: Days Sales Outstanding (DSO), Days Payables Outstanding (DPO) and inventory turns. These numbers usually live in a single tab of a spreadsheet, are updated once per quarter at best, and then drive millions in funding, investment and liquidity decisions. The problem: real payment behaviour, supplier terms and inventory dynamics change weekly, not annually.

Traditional approaches were built for stability, not for the volatility and complexity of today’s markets. Spreadsheets with hard‑coded working-capital drivers can’t keep up with shifting customer cohorts, promotional campaigns, supply chain disruptions or evolving discount policies. Even when finance adds more detail, the result is an explosion of manual maintenance, VLOOKUPs and error‑prone overrides. ERP reports help a bit, but they are backward‑looking snapshots, not forward‑looking models of actual cash movements.

The impact is substantial. Static DSO/DPO/inventory assumptions systematically over‑ or underestimate future cash, causing weak liquidity planning, unnecessary credit lines, late reactions to cash crunches and missed investment opportunities. Treasury runs conservative buffers “just in case”, operations get mixed signals on working‑capital targets, and the CFO spends too much time explaining forecast deviations instead of steering the business. Competitors that react faster to cash signals win on pricing flexibility, M&A readiness and resilience in downturns.

This challenge is very real, but it is also highly solvable. With today’s AI, especially models like Gemini integrated into Sheets and BigQuery, finance teams can infer up‑to‑date payment patterns directly from transaction data, automate working‑capital assumptions and refresh cash forecasts continuously. At Reruption, we’ve seen how embedding AI into core financial workflows transforms decision speed and quality. In the sections below, you’ll find practical guidance on how to get there – step by step, with a clear path from your current spreadsheets to AI‑enhanced cash forecasting.

Need a sparring partner for this challenge?

Let's have a no-obligation chat and brainstorm together.

Innovators at these companies trust us:

Our Assessment

A strategic assessment of the challenge and high-level tips how to tackle it.

From Reruption’s perspective, the real opportunity is not a shiny new forecasting tool, but using Gemini on top of your existing finance data stack to continuously learn and update working‑capital drivers. Because Gemini integrates natively with Google Sheets and BigQuery, it can sit where your finance team already works, infer dynamic DSO, DPO and inventory patterns from real transactions, and feed them straight back into your cash forecasting model. Our hands-on experience building AI solutions shows that this combination of embedded AI and finance ownership is what turns static assumptions into a living, data-driven system.

Anchor on Business Questions, Not on the Algorithm

Before you think about models and prompts, define the core decisions your cash forecasting must support. Is the priority to reduce reliance on short-term credit, to plan investments with more confidence, or to avoid breaching covenants? Each goal implies different granularity: a bank covenant view might focus on weekly net cash positions, while investment planning needs scenario simulations over quarters. Clarifying this up front prevents you from building an AI that is technically impressive but operationally irrelevant.

With Gemini, it’s tempting to ask for "better forecasts" in general. Instead, structure questions such as, “Given our last 18 months of AR data, what is the probability distribution of collections for invoices older than 45 days by key customer segment?” This mindset ensures that AI‑derived working-capital drivers directly answer material business questions and not just produce more numbers.

Treat AI-Assisted DSO/DPO as a Living Policy, Not a One-Off Project

Static DSO/DPO assumptions are attractive because they feel final. An AI‑assisted approach with Gemini is different: you are effectively creating a living policy that adapts as customer and supplier behaviour changes. Strategically, this means finance leadership must accept that working-capital assumptions will move more frequently, and that this is a strength, not a loss of control.

Design governance for this from day one. Decide who approves major shifts in model‑suggested DSO/DPO, how often to review them, and how to communicate changes to business units. When AI updates are treated as managed policy adjustments, you avoid the perception of a “black box” and instead position Gemini as an intelligent assistant inside your existing control framework.

Prepare Data Ownership and Finance–IT Collaboration

Gemini can only infer high‑quality payment patterns if your transaction histories, customer master data and vendor terms are reasonably complete and accessible. Strategically, this requires clear ownership between finance, IT and data teams: who curates AR/AP data in BigQuery, who controls access, and who is accountable for data quality issues that impact forecasts.

Use the introduction of Gemini as a catalyst to define this ownership. For example, finance might own the logic of segmentation (by region, industry, payment term), while IT owns the pipelines into BigQuery. This division allows Gemini to be deployed quickly while minimising security and compliance risk – themes we prioritise in every Reruption engagement.

Start with Narrow, High-Impact Use Cases

Instead of trying to overhaul your entire cash forecasting process in one go, identify narrow use cases where Gemini can prove value quickly. Typical candidates include predicting collections for late‑paying customer segments, forecasting disbursements for a specific supplier group, or dynamically adjusting DPO for critical vendors with early-payment discounts.

This strategic focus reduces resistance and allows your team to build trust in AI outputs. Once the organisation sees that Gemini can, for instance, cut forecast variance for a specific AR portfolio by a meaningful margin, it becomes far easier to extend the approach to full working-capital coverage.

Build Risk Controls and Stress Scenarios Around the AI

Finance leaders rightly worry about relying blindly on models. Strategically, Gemini should be introduced with explicit risk mitigation measures: compare its suggested DSO/DPO to legacy assumptions, enforce guardrails (e.g. maximum allowed change per month), and build stress scenarios that deliberately challenge the AI’s baseline.

For example, you can ask Gemini to simulate cash impacts if a top customer cohort suddenly extends payment behaviour by 15 days, or if a key supplier tightens terms. This positions AI not as a single source of truth, but as a powerful engine for scenario thinking – something auditors and boards are more comfortable with, and something that strengthens, rather than weakens, your control environment.

Used thoughtfully, Gemini can turn DSO, DPO and inventory from static spreadsheet inputs into dynamic, data-driven levers that materially improve cash forecasting accuracy. The real value comes when finance owns the questions and governance, while AI quietly maintains the assumptions in the background. Reruption’s combination of AI engineering depth and a Co‑Preneur mindset allows us to embed these capabilities directly in your Sheets and BigQuery environment, so they become part of how your team works every day. If you want to explore how Gemini could cleanly replace manual working-capital assumptions in your context, we’re ready to co-design and validate a concrete approach with you.

Need help implementing these ideas?

Feel free to reach out to us with no obligation.

Real-World Case Studies

From Fintech to Healthcare: Learn how companies successfully use Gemini.

Klarna

Fintech

Klarna, a leading fintech BNPL provider, faced enormous pressure from millions of customer service inquiries across multiple languages for its 150 million users worldwide. Queries spanned complex fintech issues like refunds, returns, order tracking, and payments, requiring high accuracy, regulatory compliance, and 24/7 availability. Traditional human agents couldn't scale efficiently, leading to long wait times averaging 11 minutes per resolution and rising costs. Additionally, providing personalized shopping advice at scale was challenging, as customers expected conversational, context-aware guidance across retail partners. Multilingual support was critical in markets like US, Europe, and beyond, but hiring multilingual agents was costly and slow. This bottleneck hindered growth and customer satisfaction in a competitive BNPL sector.

Lösung

Klarna partnered with OpenAI to deploy a generative AI chatbot powered by GPT-4, customized as a multilingual customer service assistant. The bot handles refunds, returns, order issues, and acts as a conversational shopping advisor, integrated seamlessly into Klarna's app and website. Key innovations included fine-tuning on Klarna's data, retrieval-augmented generation (RAG) for real-time policy access, and safeguards for fintech compliance. It supports dozens of languages, escalating complex cases to humans while learning from interactions. This AI-native approach enabled rapid scaling without proportional headcount growth.

Ergebnisse

  • 2/3 of all customer service chats handled by AI
  • 2.3 million conversations in first month alone
  • Resolution time: 11 minutes → 2 minutes (82% reduction)
  • CSAT: 4.4/5 (AI) vs. 4.2/5 (humans)
  • $40 million annual cost savings
  • Equivalent to 700 full-time human agents
  • 80%+ queries resolved without human intervention
Read case study →

PayPal

Fintech

PayPal processes millions of transactions hourly, facing rapidly evolving fraud tactics from cybercriminals using sophisticated methods like account takeovers, synthetic identities, and real-time attacks. Traditional rules-based systems struggle with false positives and fail to adapt quickly, leading to financial losses exceeding billions annually and eroding customer trust if legitimate payments are blocked . The scale amplifies challenges: with 10+ million transactions per hour, detecting anomalies in real-time requires analyzing hundreds of behavioral, device, and contextual signals without disrupting user experience. Evolving threats like AI-generated fraud demand continuous model retraining, while regulatory compliance adds complexity to balancing security and speed .

Lösung

PayPal implemented deep learning models for anomaly and fraud detection, leveraging machine learning to score transactions in milliseconds by processing over 500 signals including user behavior, IP geolocation, device fingerprinting, and transaction velocity. Models use supervised and unsupervised learning for pattern recognition and outlier detection, continuously retrained on fresh data to counter new fraud vectors . Integration with H2O.ai's Driverless AI accelerated model development, enabling automated feature engineering and deployment. This hybrid AI approach combines deep neural networks for complex pattern learning with ensemble methods, reducing manual intervention and improving adaptability . Real-time inference blocks high-risk payments pre-authorization, while low-risk ones proceed seamlessly .

Ergebnisse

  • 10% improvement in fraud detection accuracy on AI hardware
  • $500M fraudulent transactions blocked per quarter (~$2B annually)
  • AUROC score of 0.94 in fraud models (H2O.ai implementation)
  • 50% reduction in manual review queue
  • Processes 10M+ transactions per hour with <0.4ms latency
  • <0.32% fraud rate on $1.5T+ processed volume
Read case study →

Royal Bank of Canada (RBC)

Financial Services

In the competitive retail banking sector, RBC customers faced significant hurdles in managing personal finances. Many struggled to identify excess cash for savings or investments, adhere to budgets, and anticipate cash flow fluctuations. Traditional banking apps offered limited visibility into spending patterns, leading to suboptimal financial decisions and low engagement with digital tools. This lack of personalization resulted in customers feeling overwhelmed, with surveys indicating low confidence in saving and budgeting habits. RBC recognized that generic advice failed to address individual needs, exacerbating issues like overspending and missed savings opportunities. As digital banking adoption grew, the bank needed an innovative solution to transform raw transaction data into actionable, personalized insights to drive customer loyalty and retention.

Lösung

RBC introduced NOMI, an AI-driven digital assistant integrated into its mobile app, powered by machine learning algorithms from Personetics' Engage platform. NOMI analyzes transaction histories, spending categories, and account balances in real-time to generate personalized recommendations, such as automatic transfers to savings accounts, dynamic budgeting adjustments, and predictive cash flow forecasts. The solution employs predictive analytics to detect surplus funds and suggest investments, while proactive alerts remind users of upcoming bills or spending trends. This seamless integration fosters a conversational banking experience, enhancing user trust and engagement without requiring manual input.

Ergebnisse

  • Doubled mobile app engagement rates
  • Increased savings transfers by over 30%
  • Boosted daily active users by 50%
  • Improved customer satisfaction scores by 25%
  • $700M+ projected enterprise value from AI by 2027
  • Higher budgeting adherence leading to 20% better financial habits
Read case study →

Wells Fargo

Banking

Wells Fargo, serving 70 million customers across 35 countries, faced intense demand for 24/7 customer service in its mobile banking app, where users needed instant support for transactions like transfers and bill payments. Traditional systems struggled with high interaction volumes, long wait times, and the need for rapid responses via voice and text, especially as customer expectations shifted toward seamless digital experiences. Regulatory pressures in banking amplified challenges, requiring strict data privacy to prevent PII exposure while scaling AI without human intervention. Additionally, most large banks were stuck in proof-of-concept stages for generative AI, lacking production-ready solutions that balanced innovation with compliance. Wells Fargo needed a virtual assistant capable of handling complex queries autonomously, providing spending insights, and continuously improving without compromising security or efficiency.

Lösung

Wells Fargo developed Fargo, a generative AI virtual assistant integrated into its banking app, leveraging Google Cloud AI including Dialogflow for conversational flow and PaLM 2/Flash 2.0 LLMs for natural language understanding. This model-agnostic architecture enabled privacy-forward orchestration, routing queries without sending PII to external models. Launched in March 2023 after a 2022 announcement, Fargo supports voice/text interactions for tasks like transfers, bill pay, and spending analysis. Continuous updates added AI-driven insights, agentic capabilities via Google Agentspace, ensuring zero human handoffs and scalability for regulated industries. The approach overcame challenges by focusing on secure, efficient AI deployment.

Ergebnisse

  • 245 million interactions in 2024
  • 20 million interactions by Jan 2024 since March 2023 launch
  • Projected 100 million interactions annually (2024 forecast)
  • Zero human handoffs across all interactions
  • Zero PII exposed to LLMs
  • Average 2.7 interactions per user session
Read case study →

Visa

Payments

The payments industry faced a surge in online fraud, particularly enumeration attacks where threat actors use automated scripts and botnets to test stolen card details at scale. These attacks exploit vulnerabilities in card-not-present transactions, causing $1.1 billion in annual fraud losses globally and significant operational expenses for issuers. Visa needed real-time detection to combat this without generating high false positives that block legitimate customers, especially amid rising e-commerce volumes like Cyber Monday spikes. Traditional fraud systems struggled with the speed and sophistication of these attacks, amplified by AI-driven bots. Visa's challenge was to analyze vast transaction data in milliseconds, identifying anomalous patterns while maintaining seamless user experiences. This required advanced AI and machine learning to predict and score risks accurately.

Lösung

Visa developed the Visa Account Attack Intelligence (VAAI) Score, a generative AI-powered tool that scores the likelihood of enumeration attacks in real-time for card-not-present transactions. By leveraging generative AI components alongside machine learning models, VAAI detects sophisticated patterns from botnets and scripts that evade legacy rules-based systems. Integrated into Visa's broader AI-driven fraud ecosystem, including Identity Behavior Analysis, the solution enhances risk scoring with behavioral insights. Rolled out first to U.S. issuers in 2024, it reduces both fraud and false declines, optimizing operations. This approach allows issuers to proactively mitigate threats at unprecedented scale.

Ergebnisse

  • $40 billion in fraud prevented (Oct 2022-Sep 2023)
  • Nearly 2x increase YoY in fraud prevention
  • $1.1 billion annual global losses from enumeration attacks targeted
  • 85% more fraudulent transactions blocked on Cyber Monday 2024 YoY
  • Handled 200% spike in fraud attempts without service disruption
  • Enhanced risk scoring accuracy via ML and Identity Behavior Analysis
Read case study →

Best Practices

Successful implementations follow proven patterns. Have a look at our tactical advice to get started.

Connect BigQuery AR/AP Tables and Build a Clean History

Effective automation of working-capital assumptions starts with a reliable transaction history. Use your data team or a lightweight ETL to load AR and AP ledger data into BigQuery: invoice IDs, issue dates, due dates, payment dates, amounts, customer/vendor IDs, currencies and payment terms. Standardise field names and ensure timestamp formats are consistent. This provides Gemini with the raw material to infer real DSO/DPO rather than relying on static term tables.

Once the base tables are in BigQuery, create curated views: for example, a view that calculates days-to-pay for each invoice and tags it with customer segment, business unit and region. Gemini can then query these views to detect patterns such as “customers in segment A with 30-day terms actually pay in 42 days on average”. The better you structure these views, the simpler and more repeatable your AI prompts and workflows become.

Use Gemini in Sheets to Generate Dynamic DSO/DPO by Segment

With your history in place, set up a Google Sheet that pulls summary data from BigQuery (e.g. via Connected Sheets). Organise rows by customer/vendor segment and columns for metrics like historical average days-to-pay, weighted by invoice value, over different lookback windows (3, 6, 12 months). Then use Gemini in Sheets to translate that history into dynamic DSO/DPO assumptions for your forecast model.

You can prompt Gemini directly in a cell or via an Apps Script call. For example:

Example prompt for Gemini (cell note or script context):
You are assisting a finance team with working-capital forecasting.
We provide historical days-to-pay data by customer segment.
Task:
- Calculate a recommended DSO by segment
- Use a 70/30 weighting between the last 3 months and the prior 9 months
- Flag any segment where behaviour has shifted by >10 days vs the last forecast.
Return a table with columns:
- Segment
- Recommended_DSO
- Change_vs_Prior_Forecast
- Comment_on_Driver (e.g. seasonality, outlier invoices, new terms)

Link the "Recommended_DSO" column directly into your cash-flow model. This removes manual updates while keeping the logic transparent for controllers and auditors.

Forecast Collections and Disbursements on a Daily/Weekly Basis

Once DSO/DPO are dynamic, extend Gemini’s role to forecasting actual collections and disbursements. Use BigQuery to generate expected cash events: each open invoice with an expected payment date based on the AI‑enhanced days-to-pay pattern. Then re-aggregate these into daily or weekly buckets. Gemini can help refine this projection by adjusting for seasonality, known campaigns or upcoming price changes.

A practical pattern is to export the projected cash buckets into Sheets and ask Gemini to refine and annotate them:

Example prompt:
You are helping to refine a short-term cash collection forecast.
Sheet range A2:E100 contains:
- Bucket_Start_Date
- Bucket_End_Date
- Expected_Collections_Base (EUR)
- Segment
- Historic_Collection_Volatility (standard deviation %)
Tasks:
1) Adjust Expected_Collections_Base for known seasonality based on the last 3 years.
2) Add a column Adjusted_Collections.
3) Add a Comment column explaining major adjustments (>5%).
Assume:
- Strong seasonality for B2C segments around November-December.
- Slight slowdown for B2B in August.
Return the updated table.

Feed the "Adjusted_Collections" back into your cash forecast to get a more realistic short-term liquidity view.

Automate Inventory-Related Cash Assumptions

Inventory is often left as a crude assumption in forecasting models. Use Gemini to refine inventory-driven cash flows by combining sales, purchase orders and stock-level data from BigQuery. Start with a table that shows, by product category and region, historical days of inventory on hand and gross margin. Then prompt Gemini to recommend safety stock and reorder patterns that balance service levels and cash tied up in inventory.

For instance:

Example prompt:
You are supporting inventory-related cash forecasting.
We provide a table with columns:
Category, Region, Avg_Days_Inventory, Stockout_Events, Gross_Margin.
Tasks:
1) Propose a target Days_Inventory for each Category/Region that:
   - Reduces current Avg_Days_Inventory by 10-20% where Stockout_Events are rare.
   - Keeps or increases inventory where Stockout_Events are frequent and Gross_Margin is high.
2) Estimate the cash impact (in EUR) of moving from current to target Days_Inventory,
   assuming cost of goods as provided in column COGS_per_Day.
3) Return a table with Target_Days_Inventory and Estimated_Cash_Release.

Translate the "Estimated_Cash_Release" into phased monthly impacts in your cash-flow forecast, and align with operations on realistic implementation timelines.

Embed Alerts and Scenario Buttons for Finance Users

To move beyond one-off analysis, embed Gemini into your daily cash monitoring. In Sheets, create simple "Scenario" buttons (using Apps Script) that call Gemini with different assumptions: for example, “Economic Slowdown”, “Aggressive Collections”, or “Supplier Tightening”. Each button triggers a recalculation of DSO, DPO and inventory impacts under that scenario and writes results into dedicated columns or tabs.

Additionally, have Gemini generate alert narratives when leading indicators change. A daily or weekly job can query BigQuery for shifts in days-to-pay or overdue buckets and ask Gemini to summarise the risk:

Example prompt for an automated alert summary:
You receive aggregated AR/AP metrics for the last week vs the prior 4-week average.
Tasks:
1) Identify material changes in customer payment behaviour (e.g. +5 days in a major segment).
2) Identify suppliers where average payment timing has shifted.
3) Summarise cash risk or opportunity over the next 8 weeks.
4) Provide 3 concrete actions for the finance team.
Output a concise email-style summary.

Send this summary to treasury and the CFO, so AI is continuously highlighting where working-capital assumptions are drifting away from reality.

Track KPIs to Validate and Tune the AI-Assisted Forecast

To make Gemini a trusted part of your liquidity planning, define and monitor a small set of KPIs. At minimum, track: forecast error for net cash by week, forecast error for collections by major segment, and the variance between AI‑recommended and actual realised DSO/DPO. Use BigQuery to calculate these KPIs automatically and store time series for trend analysis.

Periodically involve Gemini to analyse these KPI series and suggest model adjustments, such as changing lookback windows, segregating additional customer cohorts or excluding known one-off events. Over time, you should see forecast variance decrease and the need for manual overrides shrink. Many organisations can realistically aim for 20–40% improvement in short-term cash forecast accuracy and a significant reduction in manual assumption maintenance effort once these practices are in place.

Expected outcome: a more responsive cash forecasting process, fewer emergency liquidity measures, and a finance team that spends less time massaging assumptions and more time acting on early cash signals.

Need implementation expertise now?

Let's talk about your ideas!

Frequently Asked Questions

Gemini improves DSO and DPO assumptions by learning directly from your transaction history instead of relying on static averages. Using BigQuery data, it analyses invoice issue dates, due dates, payment dates and customer or supplier segments to infer real payment patterns over different time windows. It can then recommend segment-specific DSO/DPO values, highlight where behaviour has recently shifted, and push those recommendations back into Google Sheets where your cash-flow model lives.

In practice, this means your assumptions continuously reflect current behaviour — for example, if a key customer cohort has started paying 7 days later, or if you’re systematically stretching payments to a non-critical supplier. The finance team remains in control, but the manual spreadsheet work and guesswork are largely removed.

You don’t need a large data science team to get value from Gemini in finance, but a few capabilities are important. First, you need access to AR/AP, sales and vendor term data in a structured form – ideally in BigQuery or a similar warehouse. Second, you need someone comfortable with Google Sheets (controllers, FP&A, or treasury analysts typically fit) who can work with Connected Sheets and basic formulas.

From there, Gemini’s natural language interface does a lot of the heavy lifting. For more advanced automation and scheduled runs, light support from IT or a data engineer helps – for setting up data pipelines, scripts and access controls. Reruption usually works directly with finance and one technical counterpart to stand up a working solution quickly, then upskills the finance team to own the process.

Timelines depend on your data readiness, but many organisations can see meaningful improvements in cash forecast accuracy within 6–10 weeks. The first 2–3 weeks typically focus on connecting AR/AP data to BigQuery, cleaning obvious quality issues, and defining the segmentation that matters for your business (e.g. regions, customer types, key supplier groups).

Weeks 3–6 are usually enough to deploy Gemini in Sheets, generate AI‑assisted DSO/DPO assumptions and wire them into your existing forecast model. From there, you can start tracking variance and tuning the approach. More advanced use cases – like automated scenario simulations or inventory-related cash modelling – can be layered on over the following months without disrupting the core process.

From a tooling perspective, Gemini’s cost is relatively modest compared to the financial impact of better working-capital management. The main investments are time to connect your data and redesign some of the forecasting workflow. ROI typically comes from three areas: fewer surprises in short-term liquidity (reducing emergency credit usage), lower cash buffers because forecasts are more reliable, and productivity gains from eliminating manual assumption maintenance.

While exact figures depend on your size and sector, it’s common to see reduced forecast variance by 20–40% and measurable reductions in working capital tied up, even in the first year. We recommend treating the first implementation as a focused pilot with clear KPIs so that you can quantify ROI before rolling out more broadly.

Reruption supports you end-to-end, from scoping the use case to shipping a working solution. With our AI PoC offering (9,900€), we first validate that Gemini can reliably infer your DSO, DPO and key working-capital drivers from existing data – including model selection, architecture and performance metrics. You get a functioning prototype running on your Google Sheets/BigQuery stack, not just a slide deck.

Beyond the PoC, our Co-Preneur approach means we embed with your finance and data teams like co-founders: designing governance, automating workflows, setting up risk controls and training your people to own the AI-enabled forecasting process. We focus on fast engineering and real outcomes, so that Gemini becomes a durable capability in your cash forecasting, not a one-off experiment.

Contact Us!

0/10 min.

Contact Directly

Your Contact

Philipp M. W. Hoffmann

Founder & Partner

Address

Reruption GmbH

Falkertstraße 2

70176 Stuttgart

Social Media