應收帳款天數比率
首先要看的是「應收帳款天數」。這個比率用來衡量從客戶收回款項平均需要幾天。通常以 1 個會計年度為區間計算。
比率計算如下:
\(Debtor\,Days = \frac{Ending\,Balance\,Debtors}{Sales} \times Days\,in\,Financial\,Year\)
你可以使用以下資訊:
- 本年度銷售額:12,500 USD
- 期末應收帳款餘額:650
本練習屬於課程
使用 Python 進行財務預測
練習說明
- 建立期末應收帳款餘額變數
debtors_end,以及本年度總銷售額變數sales_tot。 - 計算應收帳款天數比率
ddays_ratio。 - 印出結果。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Create the variables
____ = ____
____ = ____
# Calculate the debtor days variable
____ = (____/____) * 365
# Print the result
print("The debtor days ratio is {}.".format(____))