Homework was a pain, so I do management accounting with Python

I am studying business administration at university, so of course I also have accounting classes. One of them, the problem of the management accounting class, is troublesome, so I thought I could do it by programming. I have to memorize the calculation formula after all because it can not be used at the time of testing, but this time it is good.

What is management accounting?

Management accounting (English: management accounting) is a type of corporate accounting. The main purpose is to use accounting information for business manager decision-making, performance measurement and performance evaluation within the organization. The antonym is financial accounting. It is very different from financial accounting, which aims to provide information to stakeholders outside the company.

Quote wikipedia

Simply put, accounting such as commercial bookkeeping, which is a general bookkeeping test, is made for people outside the company. So you have to take over the rules and make it. However, the purpose of management accounting is completely different because it measures accounting information and creates reports that are useful for corporate decision making.

Determine if the project is investable (contractable)

now is the current production capacity_percent is the current operating rate trade_request_amount is the production volume requested by the other party

def Investable(now, capacity_percent, trade_request_amount):
    max_amount= now / capacity_percent
    now_can_use = max_amount- now
    if now_can_use  >trade_request_amount:
        print('Investable')
    else:
        print('No')
    
Investable(42500, 85, 7000 )
#Execution result
No

As a result of the execution, it turned out that this investment plan cannot be implemented.

Difference cost revenue analysis

Difference cost revenue analysis is a quick decision making by extracting only the additional revenue, cost and expense generated when making a special non-repetitive decision such as low order, and calculating the differential profit. It is a method to do.

productive_volume Production quantity revenue_per_item Profit per product produce_cost_per_item Production cost per product sales_cost Selling expenses fixed_cost Fixed cost

def Differential_cost_revenue(productive_volume, revenue_per_item,
produce_cost_per_item, sales_cost, fixed_cost):
    a = revenue_per_item * productive_volume 
    b = produce_cost_per_item * productive_volume
    c = sales_cost * productive_volume
    cost = b+c +fixed_cost
    if  a- cost >0:
        print('think voting')
        return(a-cost)
    else:
        print('stop voting')



Differential_cost_revenue(6500, 450, 230, 30, 435000)
#Execution result
think voting
800000    

Summary

This time, I made a program that makes it easy to do homework for management accounting in university classes. When I wrote this code, I had a print of the problem at hand, but since I don't have it now, I forgot the conditions of the detailed problem, but since the code remained, I wrote the code by imagination lol

Recommended Posts

Homework was a pain, so I do management accounting with Python
I made a fortune with Python.
I made a daemon with Python
I want to do a full text search with elasticsearch + python
I made a segment tree with python, so I will introduce it
I drew a heatmap with seaborn [Python]
I tried a functional language with Python
What I did with a Python array
I made a Hex map with Python
I made a roguelike game with Python
I made a simple blackjack with Python
I made a configuration file with Python
I made a neuron simulator with Python
I was addicted to creating a Python venv environment with VS Code
[Streamlit] I hate JavaScript, so I make a web application only with Python
I was addicted to trying Cython with PyCharm, so make a note
I made a competitive programming glossary with Python
I made a weather forecast bot-like with Python.
I made a GUI application with Python + PyQt5
I made a Twitter fujoshi blocker with Python ①
I want to make a game with Python
[Python] I made a Youtube Downloader with Tkinter.
I want to write to a file with Python
Two things I was happy about with Python 3.9
I made a bin picking game with Python
I made a Mattermost bot with Python (+ Flask)
I was able to mock AWS-Batch with python, moto, so I will leave it
A note I was addicted to when running Python with Visual Studio Code
A story that I was addicted to when I made SFTP communication with python
When I made a treemap (area graph) with python, it was subtle, so when I used flourish, it felt pretty good.
I use python but I don't know the class well, so I will do a tutorial
I learned Python with a beautiful girl at Paiza # 02
I made a Twitter BOT with GAE (python) (with a reference)
I learned Python with a beautiful girl at Paiza # 01
I made a Christmas tree lighting game with Python
I tried to draw a route map with Python
I made a net news notification app with Python
I made a Python3 environment on Ubuntu with direnv.
I was addicted to scraping with Selenium (+ Python) in 2020
I want to work with a robot in python.
I made a LINE BOT with Python and Heroku
I tried to automatically generate a password with Python3
Do Houdini with Python3! !! !!
A memo that I touched the Datastore with python
[ML Ops] I want to do multi-project with Python
[Memorandum] python + vscode + pipenv It's common, but it was a mess with warning, so a memorandum
I made a python library to do rolling rank
[Python, ObsPy] I wrote a beach ball with Matplotlib + ObsPy
A beginner tried coloring line art with chainer. I was able to do it.
I want to run a quantum computer with Python
It's a hassle to write "coding: utf-8" in Python, so I'll do something with Shellscript
There was a doppelganger, so I tried to distinguish it with artificial intelligence (laughs) (Part 1)
I replaced the Windows PowerShell cookbook with a python script.
I was hooked for 2 minutes with the Python debugger pdb
I made a simple typing game with tkinter in Python
I made a package to filter time series with python
I wrote a program quickly to study DI with Python ①
I made a simple book application with python + Flask ~ Introduction ~
I made a puzzle game (like) with Tkinter in Python
I tried a stochastic simulation of a bingo game with Python
I tried scraping with Python